Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~306 People Reached
Favorite Forums
Favorite Tags
c x 6
Member Avatar for MaAr91

Hello, been trying to work out my code. but somehow it doesnt work at certain parts. can't use math.h by the way. [CODE]#include <stdio.h> #include <conio.h> int main(void) { int input,ans,i,total,j; int hex[16]={0},counter=0,hexadecimal1=0,hexadecimal2=0,hexadecimal3=0,hexadecimal4=0; char value,value2,value3,value4; char hexadecimal[17]={0,0,0,0,0,0,0,0,0,0,'A','B','C','D','E','F'}; printf("enter value:"); scanf("%d",&input); while(input>0){ i=1; ans=input%10000; input/=10000; while(ans>0){ total=ans%10; ans=ans/=10; j=total*i; i=i*2; hex[counter]=hex[counter]+j; …

Member Avatar for WaltP
0
306