Area of circle

 #include <stdio.h>


int main()

{

    int radius = 3;

    float pi = 3.14;

    printf("The area of this circle is %f\n", pi * radius * radius);

    int height = 3;

    printf("Volume of this cylinder is %f\n", pi * radius * radius * height);

    return 0;

}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function