Hi, I have no prior programming experience and am teaching myself C through this book. I am trying to get this program to work. Here it is:
The screen at the bottom of the compiler (Bloodshed Dev-C++) says:Code:#include <math.h> main() { int a; a=pow(3,2); /*I don't know why this doesn't work*/ printf("%d",a); }
[Warning] converting to 'int' from 'double'
The line I commented on is highlighted in red in the compiler. The program is to raise 3 to the power of 2.
Thanks!