(Move to ...)
▼
Program to find Square and cube of a Number
# include <iostream.h>
int main( )
{
int i ;
cout<<"\n Enter Number : ";
cin>>i ;
cout<<"\nThe Number is : "<<i ;
cout<<"\nThe Square of Number is : "<<i* i ;
cout<<"\nThe Cube of Number is : "<<i * i* i;
return 0;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment