print squre and cube

/*input two numbers and print squre and cube*/

#include
#include
void main()
{
clrscr();
cout<<"enter value of x _";
int x,y;
cin>>x;
int sx=x*x;
int cx=x*x*x;
cout<<"\n squre of x is ==> "< cout<<"\ncube of x is ==> "< cout<<"\n\n\nenter value of y _";
cin>>y;
int sy=y*y;
int cy=y*y*y;
cout<<"\n squre of y is ==> "< cout<<"\ncube of y is ==> "< getch();
}

0 comments:

Post a Comment