Answer to Question #15436 in C++ for zyrus
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
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment