Q
questions
# include <stdio.h>
# include <math.h>
int main()
{ long int x,y;
printf("enter an integer\n");
scanf("%d",&x);
y=x%pow(10,3);
printf("the result is %d",y);
return 0;}
The compiler tell me there is something wrong with the "pow",but I
don't know what's the wrong?
# include <math.h>
int main()
{ long int x,y;
printf("enter an integer\n");
scanf("%d",&x);
y=x%pow(10,3);
printf("the result is %d",y);
return 0;}
The compiler tell me there is something wrong with the "pow",but I
don't know what's the wrong?