I am trying to define values for the variables "area" and "circ" but everytime I try to build the project I get this error:
Here is the code in question:
error C2059: syntax error : '='
If anyone can give me any suggestions I would appreciate it greatly. Thanks.
#define PI = 3.14159
int var1, two = 2;
double radius, area, circ;
printf("Program: Arithmetic Expressions\nAuthor: Stephen Haroldson\nEnter unsigned short int: ");
printf("The value of %d raised to the %d power is %f\n", two, var1, pow(two, var1));
printf("Enter unsigned short int: ");
area = PI * radius * radius;
circ = 2 * PI * radius;
printf("A circle with a radius %d has a circumference of %f and an area of %f\n", radius, circ, area);