60 487
Assignments Done
98,1%
Successfully Done
In April 2018

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

Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions