I need to write a program that will ask for a number, and then print out the nearest integer that has a whole number square root. Its supposed to be able to handle numbers up to 10 digits.
So if I entered 8, it would give me 9. 68 gives me 64, etc.
I'm lost as to how I should approach comparing the input number to the nearest squared integer. Can anyone give me some tips on the basic logic here?
Thanks in advance,
crazychile