Searching...

Square root upto given Number.

15:24

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

0 comments:

Post a Comment

Thanks For Your FeedBack....

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.