1. Practical No.-2
Aim
: To demonstrate the program for finding
cube.
Source code :
#include<iostream.h>
#include<conio.h>
void main()
{
int a, cb;
cout <<”enter the value of a”;
cin >>a;
cb=a*a*a;
cout<<”cb”<<cb;
}
Output
:
enter the value of a = 3
cb = 27