2
Answers

Algorithm...Help Needed

Ask a question
jem555

jem555

20y
1.2k
1
Thanks for your time. I need to write a small program that will display all numbers from 1 - 100 that are perfect squares. I am obviously a beginner, and any help would be appreciated. I am just now up to using select case blocks, if blocks, and loops. I'm not sure how to set up the algorithm to find the numbers that are perfect squares. I plan on using a select case block for calculations, and I obviously need a loop until > 100 statement, but I do not know how to get the square root of the numbers and compare them to the square root of the integers. I assume that the last part means that I have to tell the program to display the number only if it is both a square root of a number between 1-100, and a a whole number. Anyone? Thanks again for any help you can provide.

Answers (2)