0
Well my problem is this, I have a program that calculates the area of a circle, here’s the code:
#include <stdio.h>
#define PI 3.14
int main()
{
double radius;
double area;
printf("Program to calculate the are of a circle\n");
printf("Enter the radius: ");
scanf("%d", radius);
area = (radius * radius) * PI;
printf("The area is: %d", area);
return 0;
}
But when running it, the printf function after scanf is not executed, which is wrong?
Thanks for the help!
– Carlos Henrique