Answers for "write a program in c/c++ to convert a hexadecimal to decimal."

C++
1

Convert a hexadecimal number into decimal c++

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int x;
    cin >>hex >> x;
    cout << x << endl;
    return 0;
}
Posted by: Guest on March-27-2021

Code answers related to "write a program in c/c++ to convert a hexadecimal to decimal."

Browse Popular Code Answers by Language