C Program for Area and Perimeter of Circle

 #include<stdio.h>

void main()

{

    float r;

    printf("Enter radius: ");

    scanf("%f",&r);

    printf("Area = %f\n",3.14*r*r);

    printf("Perimeter = %f",2*3.14*r);

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices