Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Homework HelpRSS Feeds

Program to find area of circle

Posted By: Sultana Tabassum     Category: C Programming     Views: 35058

Write a program to find area of circle

Code for Program to find area of circle in C Programming

#include<stdio.h>
#include<conio.h>
#define PI 3.141
    
float cal_area(float );
void main()
{
    float redius;
    clrscr();
    printf("\n ENTER RADIOUS:- ");
    scanf("%f",&redius);
    cal_area(redius);
    getch();
}
float cal_area(float r)
{
    float area;
    area = PI*r*r;
    printf("\n THE AREA IS %f",area);
    return(area);
}
    
******************** OUTPUT ***************************

    ENTER RADIOUS:- 5

    THE AREA IS 78.525002

*******************************************************
  
Share: 


Didn't find what you were looking for? Find more on Program to find area of circle Or get search suggestion and latest updates.

Sultana  Tabassum
Sultana Tabassum author of Program to find area of circle is from Singapore.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!