Can anyone tell me how to take user input in this program? And correct my mistakes too | Sololearn: Learn to code for FREE!

+3

Can anyone tell me how to take user input in this program? And correct my mistakes too

https://code.sololearn.com/cxurlRaDpa0D/?ref=app

4/21/2021 10:05:02 AM

Atul [Inactive]

13 Answers

New Answer

+2

Atul Initialise rad, h and store input value in rad, h https://code.sololearn.com/cKuc4GNvq6CX/?ref=app

+2

Create a class and use getter and setter to set it's radius and height and calculate the surface area and volume of the cylinder Martin Taylor This was the question

+1

https://code.sololearn.com/cxurlRaDpa0D/?ref=app 🅰🅹 (Challenge Accepted) I tried this.

0

Martin Taylor I was solving a question there it was told to do so. So I did

0

🅰🅹 (Challenge Accepted) Can't we directly call vol method what is the necessity of calvol method?

0

Atul You can call. No issue.

0

That is what I did. I think so

0

Can you please explain the print statement deeply as I am unable to get. I think so it is related to C language