Monday, December 17, 2012

SQUARE OF A NUMBER IN C++


#include<iostream.h>
void main ()
{
int num, sqr;
cout << "ENTER THE NUMBER : ";
cin >> num;
sqr= num*num;
cout << "\nTHE SQUARE OF " << num << " is " << sqr;
}

No comments: