pow(x,y) is not working - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

pow(x,y) is not working

Hiii

I tried to write a small program in C.

[code]#include
#include
int main()
{
printf("

the 4^3 = %d",pow(4,3));
return 0;
}[/code]

And I compile like[b] $gcc -lmath pgm1.c [/b]

but it doesn't work..What may be the reason.

Thanking you
Krish+

Comments

Sign In or Register to comment.