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
EDIT: I made a small mod. to get the closest perfect square, instead of the smallest.