/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");
}
#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