Beginner, Please Help
Posted: Thu Oct 07, 2004 11:50 am
I need to write a program that accepts a number and finds an integer whose square is less than the number entered using only do loop and no other functions. I can use only one input and one output variable.
This is what I have and it's wrong:
cls
max=max-1
input "please enter a number"; max
do until max2<max
max2=(max*max)
loop
print max2
Can you help?
This is what I have and it's wrong:
cls
max=max-1
input "please enter a number"; max
do until max2<max
max2=(max*max)
loop
print max2
Can you help?