i need to write a c++ program that calculates and produces these two columns using the three looping statements: for loop/while loop/do while loop.

NUMBERSSQUARED
12
24
39
416
525

kindly help me please..:'(

If you are interested to understand the concepts:

FOR Loop
While Loop
Do While

Try it yourself first and post some code. Then we will help you understand the loops better.

Also, 1 squared is 1 ;)

may be you can use the following code

cout<<"number"<<endl;
cout<<endl<<"\t"<<"square";
cout<<1<<endl;
cout<<"\t"<<2;
........
.......
.....

Hi angle28
You did't try anything before posting your problem, you have to work on it after that you free to ask your problem here with your work

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.