write a program on area of cube in c++
Answers
Answered by
0
#include <iostream>
using namespace std;
int main()
{
double height;
double width;
double length;
double area;
cout << "Enter Height : ";
cin >> height;
cout << "Enter Length : ";
cin >> length;
cout << "Enter Width : ";
cin >> width;
area = height * length * width;
cout << "Area is : " << area << endl;
system ("PAUSE");
return 0;
}
using namespace std;
int main()
{
double height;
double width;
double length;
double area;
cout << "Enter Height : ";
cin >> height;
cout << "Enter Length : ";
cin >> length;
cout << "Enter Width : ";
cin >> width;
area = height * length * width;
cout << "Area is : " << area << endl;
system ("PAUSE");
return 0;
}
Answered by
0
Answer:
#include<iostream.h>
#include<conio.h>
voud main()
{
clrscr();
int area,side;
cout<<"\nEnter side of cube";
cin>>side;
area=6*side*side;
cout<<"\nArea of cube is= "<<area;
getch();
}
Similar questions