Answer to Question #56421 in C++ for raneem
Write a program that reads a string that represents a number in hexadecimal then displays
the equivalent number in decimal.
1
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment