[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
DOEACC FORUM • View topic - Programe For Find The Area of Circle
Page 1 of 1

Programe For Find The Area of Circle

Unread postPosted: Thu May 22, 2008 6:08 pm
by rajeevmahura
/* Programe For Find The Area of Circle */
#include<conio.h>
#include<stdio.h>
#include<math.h>
void main()
{
float radius,area;
clrscr();
printf("Enter The Radius of Circle:- ");
scanf("%f",&radius);
area=3.14*pow(radius,2);
printf("Area of Circle is:- %f",area);
getch();
}
/*
Input:- Enter The Radius of Circle:- 7

Output:- Area of Circle is:- 153.860001
*/

Re: Programe For Find The Area of Circle

Unread postPosted: Tue Sep 01, 2009 7:18 am
by manojthesingham
#include<stdio.h>
#include<conio.h>
/*
int printf("format args",..,..,..);
printf("B",printf("A"));
prints A then B
but comma has more precedence
int i = (1,2); 2 is stored
*/
const double PI=223.0/71.0;
int main(int argc,char **argv)
{
int r;
printf("Area of Circle is %f ",PI*r*r,scanf("%d",&r,printf("Enter the Radius of Circle : ")));
getch();
return 1;
}