Computer Science, asked by aryankhatri40, 5 months ago

1.Write a program in c++ to input length,width & height then find volune of a cube.​

Answers

Answered by RaviKumarhacker
1

Explanation:

#include <iostream>

using namespace std;

int main()

{

int sid1 , sid2 , sid3;

float volcu;

cout << "\n\n Calculate the volume of a cube :\n";

cout << "---------------------------------------\n";

cout<<" Input the length of a cube : ";

cin>>sid1;

cout<<"Input the width of a cube : ";

cin>>sid2;

cout<<"Input the hight of a cube : ";

cin>>sid3

volcu=(sid1*sid2*sid3);

cout<<" The volume of a cube is : "<< volcu << endl;

cout << endl;

return 0;

}

Similar questions