Wednesday, 5 December 2012

CPL PROGRAM 12b CODING

              AREA AND CIRCUMFERENCE OF A CIRCLE                                                      
                                                                    
CODING:                                                           
                                            
#include<stdio.h>
#include<conio.h>
void main()
{
 float r,area,circumference;
 clrscr();
 printf("\n Enter the Radius:");
 scanf("%f",&r);
 area=3.14*r*r;
 circumference=2*3.13*r;
 printf("\n Area of the circle = %f",area);
 printf("\n circumference of the circle =%f",circumference);
 getch();
}

No comments:

Post a Comment