Computer Science, asked by Brainlost, 2 days ago

In a program define a function having no return and no argument, to find volume of cuboid (l*b*h)

Answers

Answered by NotThareesh
1

Answer:

Here's your answer

Explanation:

def volume():

   length = int(input("Length: "))

   breadth = int(input("Breadth: "))

   height = int(input("Height: "))

   print(f"Volume is {length*breadth*height}")

volume()

Answered by MichMich0945
1

Answer:-

Java:

public static void volumeOfCuboid(){

final static int l = 10, h = 12, b = 25;

System.out.println("The volume of a cuboid having h = " + h + ", l = " + l + " and b = " + b + "\n\nIs " + l * b * h );

}

C/C++:

void volumeOfCuboid(){

int l, b, h;

l = 20, b = 15, h  = 10

printf("The volume of a cuboid having its parameters as (l,b,h) is %d", l*b*h );

}

Hope this helps you!

Please also specify the language next time (:

Similar questions