Code Scrappers


Area Of Circle C program


              #include<stdio.h>
              #include<stdlib.h>

              void main()

              {
                  int radius;

                  float area, cir;

                  printf("\nEnter radius of circle: ");

                  scanf("%d", &radius);

                  area = 3.14 * radius * radius;

                  printf("\nArea of circle : %f ", area);

             }
          



Output

    Enter radius of circle: 5

    Area of circle : 78.500000