Recent Posts

9-latest-250px-course

Write a C program for Area and Circumferance of Circle

Write a C program for Area and Circumferance of Circle



Program:-     

#include <stdio.h>

#include <conio.h>

   void main()

{

float C,r, A;

clrscr();

printf("Enter the value of r");

scanf("%f",&r);

A=(3.14*r*r)/2;

C=2*3.14*r;

printf("%f%f",A,C);

getch();

}

Output:-

input:-
Enter the value of r
r=10
output:-
314
62.8
SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment