1 2 3 4 5 6 7 8
//Ch25_Ex25 clc; clear; close; r=10.5; vol=(4/3)*(22/7)*r^3; surfaceArea=4*(22/7)*r^2; mprintf("Volume= %.0f cubic cm\n Surface Area=%.0f square cm",vol,surfaceArea);