C program for radius of circle, C/C++ Programming

C Program for RADIUS OF CIRCLE

 

#define PI 3.14159

main()

{

          float r,a;

          clrscr();

          printf("ENTER THE RADIUS OF A CIRCLE: ");

          scanf("%f",&r);

          a=PI*r*r;

          printf("\NTHE AREA OF A CIRCLE IS %f",a);

          getch();

}

 

OUTPUT :

 ENTER THE RADIUS OF A CIRCLE: 5

THE AREA OF A CIRCLE IS 78.539743

 

 

Posted Date: 9/10/2012 2:13:47 AM | Location : United States







Related Discussions:- C program for radius of circle, Assignment Help, Ask Question on C program for radius of circle, Get Answer, Expert's Help, C program for radius of circle Discussions

Write discussion on C program for radius of circle
Your posts are moderated
Related Questions
- Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulati


Want an EA project for Jack Bsher Project Description: New EA game Skills required   Android, C++ Programming, PHP, Metatrader, SQL

having 2 arrays and 3killograms of pebbles are needed converting an area of 1 square meter the rate of pebble is $5 per killograms

lcm program.

given integer ''n'' and permutation of numbers 1,2,..n-1, c program to print permutation that lexicograghically precedes given input permutation if permutation is least print input


(a) Write a procedure (count-even n) that counts the number of even digits in the decimal representation of the number n. For example, (count-even 234) should return 2. (b) Writ

#Hi, I''m planning to derive the escape velocity through C++. I would just like to know if it''s possible to differentiate symbolic functions? Do I need to download libraries,etc?

THEORY OF A COMPUTER PROGRAMMING