j

Monday, 2 November 2015

Write a program that take two number from user and find the cube of the sum of these two number



#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
long int a,b,sum,cube;
cout<<"Enter two numbers ::";
cin>>a>>b;
sum=a+b;
cube=sum*sum*sum;
cout<<"Cube of the sum of these numbers is "<<cube;
getch();
}

Subscribe to this Blog via Email :

1 comments:

Write comments
Legal Blogs
AUTHOR
2 November 2015 at 07:21 delete

Excellent Design mr. Umair

Reply
avatar