blob: 831d4b0a1887f295108761289c76fd8525a04273 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc();
clear;
// To calculate the surface area to volume ratio
d=26; //distance in m
r=d/2; //radius in m
SA=4*%pi*r^2; //surface area of sphere in m^2
V=(4/3)*%pi*r^3; //volume of sphere in m^3
R=SA/V; //ratio
//surface area to volume ratio can also be given by 3/radius
printf("surface area to volume ratio of sphere is %f m-1",R);
|