60 704
Assignments Done
97,9%
Successfully Done
In April 2018

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.
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions