Answer to Question #15436 in C++ for zyrus

Question #15436
8. Write a C++ program that would generate the output below:
No. Square of a no.
1 1
2 4
3 9
. .
. .
10 100
1
Expert's answer
2012-09-28T08:56:19-0400
#include<iostream.h>

void main(){
cout<<"No.& quot;<<"Square of a no."<<"\n";
for (int i=1; i<101; i++)
cout<<i<<"& quot;<<i*i<<"\n";
}

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