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();
}
Scanf is prompting an error "must take address of a memory location"
ReplyDeleteCan you please provide some more information about the problem which you mentioned above so that we may help you out with relevant details too....
ReplyDeletePlease elaborate your query to get satisfactory answer..
and if possible then please provide you email too.