Create class named** Cuboid** with fields length,width and height. Calculate volume of the cuboid.

Class Cuboid contains following functions:

**1. set_height(int l):** sets the length of the cuboid.

**2. set_width(int w):** sets width of the cuboid.

**3. set_height(int h)**: sets height of the cuboid.

**4.volume():** Prints the volume of the cuboid.

**Input:**

The first line contains an integer **T**, the number of test cases. For each test case, three integers are given.

**Output:**

For each test case, the output is the volume of the cuboid.

**User Task:**

Since this is a functional problem you don't have to worry about input, you just have to complete the functions given **set_height(), set_width(), set_height() **and** volume()**.

**Constraints:**

1 <= T <= 100

1 <= l, w, h <= 10^{3}

**Example:
Input**

2

10 5 7

11 9 4

**Output:**

350

396

Author: saksham0751

If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.

d_Coder00 | 134 |

dungeon_master1299 | 126 |

Astikeysingh | 120 |

rajendrashekhawat063 | 115 |

kaustavbhattachaarya | 111 |

Pulkit__Sharma__ | 646 |

Anirban166 | 531 |

abducodes | 501 |

Found_me | 454 |

Yo_Nehru | 404 |

blackshadows | 5331 |

Ibrahim Nash | 5219 |

akhayrutdinov | 5111 |

mb1973 | 4929 |

Quandray | 4559 |

Login to report an issue on this page.