Search Your Keyword

A One Massage for users

C Program BD say you

Hi, If you are new in our blog and to get support about C program, than you must select your level from right side in this blog.Such as, If you want to learn than you select Entry Level for learning and If you are known the basic of C program than you select Solution Level.


Monday, June 24, 2019

Q3. Write a C program to find the area and Circumference of a circle.

C program to find the area of a circle:-
 #include<stdio.h>
 #include<conio.h>
 #define PI 3.1416

 void main()
 {
  float a, r, c;
  clrscr();
  printf("Enter Radious=");
  scaf("%f",&r);

  a=PI*r*r;
  c=2*PI*r;
  printf("Area=%f \n Circumference=%f", a, c);
  getch();
 }
 
Note:-
Here,
a for Area,
r for radious and 
C for circumference. 

write a c program that print the area of a circle and circumference, 

C program to calculate the area of a circle, C program to calculate the circumference of a circle, C program, C programming, Programming language in C, c,C

No comments:

Post a Comment