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
Ranked #107.70K
1 Posted Topic
//Decimal to Hex value main() { char hex[16]={"0123456789ABCDEF"}; int num,i=0,j; char result[]; printf("Enter the Decimal No.\n"); scanf("%d",&num); while(num) { result[i]=hex[num%16]; num=num=num/16; i++; } printf("Given num of the hex value is:"); for(j=i-1;j>=0;j--) printf("%c",result[j]); getch(); return 0; }
The End.
bmsangati