Try changing this line
scanf("%d %d %d",a,b,c);
to
scanf("%d %d %d",&a,&b,&c);
A few more pointers..
main should return an integer
int main()
{
...
return 0;
}
and you should include the library math.h for the math function(s).
#include <stdio.h>
#include <math.h>
gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387