Calculate volume

Report a typo

Create a function called getVolume, which takes 3 Int arguments that are supposed to be the length, the width, and the height of an object, and returns the volume of the cuboid with these sides. If the third or the second dimension is not specified, it should be 1 by default.

Write a program in Kotlin
fun getVolume(...){
//TODO
}
___

Create a free account to access the full topic