I use printf & scanf in the program below.
I enter a value and then the value is used in the formulas.
But all the program does is printing and although I can put some number... the program does nothing.
No error, no warning, nothing...
It just stops there.
So I think there's something wrong aobut the scanf...
Can someone help me?
#define PI 3.14
#define g 9.807
double period, length;
printf("enter length : ");
printf("period is %g\n", period);
printf("length is %g\n", length);