Stuck on Integer/if else statements

hey all is anyone able to help me on this;

Suppose a cuboid has three sides length, depth and height Write a C++ program that reads from keyboard these 3 sides in the form of integers, with proper input prompt/s, then display the volume of the cuboid, i.e. the product of these 3 sides. If these 3 sides are of equal length, then display the message "The cuboid is a cube.". If two of the 3 sides, but not all the three, are equal to each other, then display the message "The cuboid has a square face but is not a cube.". If none of the 3 sides are equal to one another, then display the message "The cuboid has no square faces.".

SO Far ive put together this but seems to be stuck on the format. how its done properly

#include <iostream>
using namespace std;

int main()

{

int length,depth,height;

cout << "ask for value of length:" ;
cin>> length;

cout <<"ask for value of depth:" ;
cin>> depth;

cout <<"ask for value of height:";
cin>> height;



assign a variable to and call int function()

print your results

if variable1 = variable2 = variable3{
It's a cube
}else{
if 2 variables are = {
has a square face
}else{
no square faces.}
}
}
1
2
3
4
5
6
7
if(variable1 == variable2 || variable1 == variable3 || variable2 == variable 3){

}else if( put your code here ) {

}else{
code here
}
Topic archived. No new replies allowed.