clc(); clear; // To calculate the volume of cone r=1; //radius in m h=1; //height in m V=(1/3)*%pi*(r^2)*h; printf("volume of cone is %f m^3",V);