#include "conio.h"
#include "iostreame.h"
class demo
{
public :
int a,b,c;
void sum();
};
void demo :: sum()
{
b=0;
clrscr();
cout<<"Enter the Number : ";
cin>>a;
cout<<"\nThe Number You Entered is : "<
c=a*a;
cout<<"\n\nThe Square Of the Number is : "<
}
void main()
{
demo obj;
obj.sum();
getch();
}
Get the executable ( .exe ) file for this program..
Download
0 comments:
Post a Comment