Answer to Question #56421 in C++ for raneem

Question #56421
Write a program that reads a string that represents a number in hexadecimal then displays
the equivalent number in decimal.
1
Expert's answer
2015-11-19T03:41:58-0500
#include <stdio.h>

int main() {
int number;
scanf("%x",&number);
printf("%d",number);
return 0;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS