Pages

Saturday, 6 September 2014

program of while loop , display 1-10 number and their square



#include<iostream>
using namespace std;

int main()
{
int i=1;

while( i<=10 )
{
cout<<"\t\t"<<i<<"\t\t"<<i*i<<"\n";
i++;
}
return 0;
}

No comments:

Post a Comment

thnx for visiting my blog