I am working on a homework assignment and I could use some help. I don't want the answer just given to me but any help/nudge/advice would help.
We have been learning pseudocode but for this assignment we're asked to not use pseudo. We haven't learned C++, Java or C# yet so it's just very basic programming language...nothing that is actually executable. We only need the snippet of code; no full program and no declaring variables.
The question is:
Quote
Write a WHILE loop that squares each number starting with 1 and ends when the square equals 49
So far this is what I've figured out.
int = 1
while squareNum <> 49
int * int = squreNum
int = int + 1
Am I on the right track? Where do I go next?
Any help would be appreciated
This post has been edited by TwidgetUSN: 08 October 2011 - 11:33 AM

New Topic/Question
Reply



MultiQuote




|