Help in understanding C++ statements

When reading the problems to convert to C++ how do I know which statement to use?

ex. when the problem asks to got the Square root of Numbers 4 to 9,
---I know I use a for statement because it counts.
for(n=4,n<=9,n++)

PLEASE HELP I'm stuck on a problem I don't know which statements to put.
Last edited on
Topic archived. No new replies allowed.