HNDIT
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment