blob: 8e4881b5eeedcf5a218a8479c8549be94ad0c588 (
plain)
1
2
3
4
5
6
7
8
9
|
//Ch25_Ex32
clc;
clear;
close;
r=10.5;
vol=(2/3)*(22/7)*r^3;
curved=2*(22/7)*r^2;
total=3*(22/7)*r^2;
mprintf("Volume=%.1f cubic cm\n Curved surface area=%.0f square cm\n Total surface area=%.1f square cm",vol,curved,total);
|