Computer Science, asked by noorunnisa45466, 11 months ago

Write a program with a function volume () which accepts three sides of a cube
and returns its volume. Provide a default value of 1 for all the three sides of a
cube. Call this function with zero, one, two and three arguments and display the
volume returned in the main ().

Answers

Answered by Anonymous
1

Using Standard Method

1)The value of side of a cube will store into the variable “side”.

2)The value will be substituted into the formula area=side*side*side.

3)The calculated value will store into the variable “area”, and displayed using printfunction.

<marquee direction = "right"> ✧༺♥༻✧Sunny2888✧༺♥༻✧.

<marquee direction = "right">hope it helps you♥️.

<marquee direction = "right">FOLLOW ME ♥️.

\huge{\blue{\fbox{\purple{\bigstar{\mathbf{\red{hello\:mate}}}}}}}

<body bgcolor="pink"><marquee direction="left"><font color=yellow>

\huge {\bigstar {\mathfrak {\purple {Take\:care\:guyz...☺}}}}

Attachments:
Similar questions