I am using wmware player with centos and it keeps saying that there is something wrong with my pow method and i can't figure it out. When i run the program it doesn't give me any output. Oh and i'm going to try to add a code tag, i really hope i do this right, if not i'm sorry.
Code:
#include<stdio.h>
#include<math.h>
main()
{
char s[1000],c;
int i,A,B,C,D,E,F,j;
double k,g;
i,j=0;
g,k=0.0;
A=10;
B=11;
C=12;
D=13;
E=14;
F=15;
while((c=getchar()) !='\n')
{
s[i++]=c;
}
s[i]='\0';
for(j=i;j>=0;j--)
{
g=g+(((int)s[j])*(pow(16,k)));
k++;
}
putchar(g);
return 0;
}