c++ program to convert hexadecimal to decimal using function code example
Example: 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;
}