Q:

Write a C Program to find area and circumference of circle

0

Write a C Program to find area and circumference of circle. Here’s simple Program to find area and circumference of circle in C Programming Language.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Below is the source code for C Program to find area and circumference of circle which is successfully compiled and run on Windows System to produce desired output as shown below :

SOURCE CODE : :

/*  C Program to find area and circumference of circle  */

#include<stdio.h>

int main()
{
    float area, radius, circum;

    printf("ENTER THE RADIUS OF THE CIRCLE :: ");
    scanf("%f", &radius);
    area = 3.142 * radius * radius;
    circum = 2 * 3.142 * radius;
    printf("\nTHE AREA OF THE CIRCLE IS :: %f", area);
    printf("\n\nTHE CIRCUMFERENCE OF THE CIRCLE IS :: %f\n", circum);

    return 0;
}

 

OUTPUT : :

ENTER THE RADIUS OF THE CIRCLE :: 5

THE AREA OF THE CIRCLE IS :: 78.550003

THE CIRCUMFERENCE OF THE CIRCLE IS :: 31.420000

Above is the source code for C Program to find area and circumference of circle which is successfully compiled and run on Windows System.The Output of the program is shown above .

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Basic Solved Programs – C Programming

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
C program to find largest and smallest of three nu... >>
<< Write a C Program to find the roots of quadratic e...