Answers for "Convert a hexadecimal number into decimal c++"

C++
0

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 "Convert a hexadecimal number into decimal c++"

Browse Popular Code Answers by Language