Help! I don't know what's wrong...
It keeps giving error messageBut I'm sure nothing is wrong... :(Quote:
syntax error before '=' token
Code:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PI=3.14
int main(void)
{
double vol,area,r,h;
printf("radius is : ");
scanf("%lf",&r);
printf("height is : ");
scanf("%lf",&h);
vol=PI*r*r*h;
area=2*PI*r*r+2*PI*r*h;
printf("volume is: %g and area is: %g\n", vol,area);
getch();
return 0;
}