C Program to get Area and Perimeter of a Circle

 Program By -Jayant Purohit


/*Program to get Perimeter and Area of Circle*/
#include<conio.h>
#include<stdio.h>
void main()
{
float radius,area,perimeter;
clrscr();
printf("\nPlease Enter the Radius of Circle:->");
scanf("%f",&radius);
area=(3.141*radius*radius);
perimeter=(2*radius*3.1417);
printf("\nThe area of the Circle is:->%f",area);
printf("\nThe Perimeter of the Circle is:->%f",perimeter);
getch();
}

2 comments:

  1. Scanf is prompting an error "must take address of a memory location"

    ReplyDelete
  2. Can you please provide some more information about the problem which you mentioned above so that we may help you out with relevant details too....
    Please elaborate your query to get satisfactory answer..
    and if possible then please provide you email too.

    ReplyDelete

Please write your Views about this Post here:->;

Pageviews last month