I have a simple C code that uses 'pow' function pow(x,y) . declared integer variables total, x, y with given values for x and y. I should be expecting a value of 8. See error details below upon...
Type: Posts; User: libchk
I have a simple C code that uses 'pow' function pow(x,y) . declared integer variables total, x, y with given values for x and y. I should be expecting a value of 8. See error details below upon...
Thanks guys , thanks thebigH it worked
Hi noob here,
Im trying to use boolean == using if condition , below i have a character name with 9 elements, the program will input a string name called james and i set it in if condition, so...
thanks mat, it works fine
bt ~ $ gcc -lm -o ma ma.c
bt ~ $ ./ma
2 to the power of 5 is equal to 32
#include <stdio.h>
#include <math.h>
main ()
int a=2;int b=5; int c; c = pow(a,b);
printf("%d to the power of %d is equal to %d\n",a,b,c);
}