Question

Write a program to calculate the volume and surface area of a sphere from it radius...

Write a program to calculate the volume and surface area of a sphere from it radius given as input. Here are some formulas that might be useful:

V = 4/3πr3

A = 4 πr2

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code for copying(python)

import math
def volume(radius):
    v=(4/3)*math.pi*radius*radius*radius
    return v
def surfaceArea(radius):
    s=4*math.pi*radius*radius
    return s
radius=float(input("Enter the radius : "))
print("Volume of sphere is {}".format(volume(radius)))
print("surface Area of sphere is {}".format(surfaceArea(radius)))
   

Add a comment
Know the answer?
Add Answer to:
Write a program to calculate the volume and surface area of a sphere from it radius...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT