hex into decimal cpp 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;
}
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int x;
cin >>hex >> x;
cout << x << endl;
return 0;
}