Using a batch script I would like to check if the number a user enters is a perfect square and if not find the closest number that is a perfect square.

```
@echo off  && cls 
Set /p input=
if %input% == PERFECT SQUARE echo perfect square
If %input% not == PERFECT SQUARE do (
::find closest perfect square

```