Understanding 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.
Your question is akin to asking "I have this story I want to write. How do I know which words to use?"
There is no answer. You have to consider what tools you have, what they do, what you need to accomplish, and figure out yourself how to get to your goal using those tools.

If a method existed to do this, we would already have programmer AIs.
Topic archived. No new replies allowed.