Tuesday, 20 November 2012

Square root upto given Number.


#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;
}

No comments:

Post a Comment