Write a program that prompts the user to enter a multidigit

Write a program that prompts the user to enter a multi-digit hexadecimal (i.e., base 16) value as string The program should output the equivalent decimal value. For example, if the user enters 11 the correct output would be 17 If the user enters IF the correct output would be 31 For art input of the correct output would be 32. Finally, for FF the correct output would be 255 (Do not call Integer present or integer value Of in your solution.)

Solution

#include <stdio.h>

#include<string.h>

Int main(arg i, *arg j[])

{

char *string=arg j[1];

printf (\"%s\",string);

int i;

for (i=0;i <strlen(string);i++)

}

 Write a program that prompts the user to enter a multi-digit hexadecimal (i.e., base 16) value as string The program should output the equivalent decimal value

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site