C Program to Find Area of Circle Using Function

In this program, we will find area of a circle using function.

Source Code
#include <stdio.h>
int area (int);
void main()
    int r;
    printf("Enter value of r: ");
    scanf("%d", &r);
    printf("Area of circle is %d", area(r));
int area(int r)
    int area;
    area = 3.14 * r * r;
Enter value of r: 5.2
Area of circle is 78

"Coding Hub - Learn to code" app now available on Google Play Store