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;
     }

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|