C Code for Cone

This c programming code is used to find the cone . You can select the whole c code by clicking the select option and can use it. When you click text, the code will be changed to text format. This c program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this c code and use it to find the cone .

#include<stdio.h>
#include<math.h>
void main()
{
 float s,r=10,h=7,c,v,t;
    s = sqrt(pow(r,2) + pow(h,2));
    v = (0.333)*3.14*pow(r,2)*h;
    c = 3.14 * r * s;
    t = 3.14 * r * (s + r);
    printf("Slant Height = %f",s);
    printf("\nVolume of Cone = %f",v);
    printf("\nCurved Surface Area = %f",c);
    printf("\nTotal Surface Area = %f",t);
}
Other Programming Codes
Online Calculator : Cone Calculator
Click on the select code link to copy and paste this free c program code for cone calculator.

english Calculators and Converters


Sitemap