Wednesday, 9 January 2013

program to calculate cube

/program to calculate cube...

#include<iostream.h>
using namespace std;
void main( )
{
clrscr( );
int var;
int cube;
cout<<"enter any number for cube calculation";
cin>>var;
cube=var*var*var;
cout<<"answer="<<cube;
system("pause");
}

No comments:

Post a Comment