#include <iostream>
//#include <math.h>
using namespace std;
int main()
{
int num;
cout << "Enter Number upto which u want to take square: ";
cin >> num;
for (int q=1;q<=num;q++)
cout << "Square of " << q << " is " << q*q <<endl;
return 0;
}
//#include <math.h>
using namespace std;
int main()
{
int num;
cout << "Enter Number upto which u want to take square: ";
cin >> num;
for (int q=1;q<=num;q++)
cout << "Square of " << q << " is " << q*q <<endl;
return 0;
}
0 comments:
Post a Comment
Thanks For Your FeedBack....
Click to see the code!
To insert emoticon you must added at least one space before the code.