CALCULATE THE AREA OF THE CIRCLE USING INPUTS SUPPLIED BY THE USER .

 #include <stdio.h>


int main()

{

    int radius;

    float pie=3.14,area;

    printf("what is the radius of the circle \n");

    scanf("%d",&radius);

    area=pie*radius*radius;

    printf("the area of circle is %f",area);

    

    return 0;

}


No comments:

Post a Comment

Programming in C Language

  PROGRAM LIST TO BECOME PRO IN C    😍😍😍            PRACTICE SETS                                                        UNIT -1  👇   IN...