Wednesday, 9 April 2014
write c++ program that display a numbers with their squares
Do you like this story?
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include<iostream.h> #include<conio.h> void main(){ clrscr(); int n; n=1; while(n<=5) { cout<<n<<"\t"<<n*n<<endl; n++; } getch(); } |
OUTPUT