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.
the equivalent number in decimal.
Expert's answer
#include <stdio.h>
int main() {
int number;
scanf("%x",&number);
printf("%d",number);
return 0;
int main() {
int number;
scanf("%x",&number);
printf("%d",number);
return 0;
Need a fast expert's response?
Submit orderand get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment