C Programming that calculate the area of a circle - 6 Players blogs for technology

give us your feedback

People Online

Breaking

ads

Post Top Ad

Sunday, June 16, 2019

C Programming that calculate the area of a circle

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

int main()
{
    float r,area;
    printf("\n\t enter the area of a circle= ");
    scanf("%f",&r);
    area=3.14*r*r;
    printf("\n\t the area of a circle is = %.2f",area);
    return 0;
}

  the output

enter the area of a circle= 3
 the area of a circle is = 28.26

No comments:

Post a Comment

ads1

Post Top Ad