15.Write a program to display total surface area and volume of sphere.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm:

Step 1: Start

Step 2: Input radius of sphere(r)

Step 3: A = 4 * 3.14 * r ^ 3

Step 4: V = (4 / 3) * 3.14 * r ^ 3

Step 5: Print Total Surface Area of Sphere is : A

Print Volume of Sphere is: V

Step 6: Stop/End

Flowchart:

Create a flowchart to display total surface area and volume of the sphere
Create a flowchart to display total surface area and volume of the sphere
Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

14.Write a program to ask in kilogram and convert into grams.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Next Post

16. Write a program to display total surface area of cylinder.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Related Posts