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 you run it, the printf function after the scanf is not executed, what is wrong?