I want to write a java program to find the largest square number which is less than or equal to a given number.
For example when I insert
10
as the inputted number, the answer is9
because9
is the largest square up to10
I understand loops, but I can't figure out the logic behind this one.