Answer to Question #313108 in C# for Siphelele

Question #313108

WRAV101: Practical 4

Submit in Moodle before Tuesday 22 March, 14:00

Objectives

 Using loops

 Using decision statements

 Using build-in methods

NB: Check out the steps below regarding getting started, saving the program (after


Task 3

Write a program to display the squares of all the numbers 1 to 100 in a

table format similar to the output displayed.

You have to make use of a loop.


1
Expert's answer
2022-03-17T08:55:49-0400

Here is program:

int main()
{
	int x = 1;
	for (int i = 0; x <= 100; i++)
	{
		cout << x * 2 << endl;
	}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS