+ 2

Can this code work? If yes please help.

I made a code that calculates area and volume of any object(that is given in the code) using void function and array function, but it has many errors. Thanks. https://code.sololearn.com/cHXFuHpN3Ezk/?ref=app

21st Jan 2020, 7:28 PM
Manthan Gohel
Manthan Gohel - avatar
2 Answers
+ 3
I have not run all options so it might have issues. But, both area of square and volume of cube work. https://code.sololearn.com/ciZygf89TT2w
22nd Jan 2020, 1:53 AM
John Wells
John Wells - avatar
+ 1
John Wells I checked all options and all are working. Thank you for solving it.😊
22nd Jan 2020, 5:36 PM
Manthan Gohel
Manthan Gohel - avatar