Mega Code Archive

 
Categories / C++ / Data Type
 

Output Hexadecimal with lowercase base

#include <iomanip> #include <iostream> using namespace std; int main( ) {    cout << "Enter a hexadecimal number: ";    int num;    cin >> hex >> num;    cout << "\nDecimal: " << num         << "\nHexadecimal with lowercase base: " << nouppercase << num; }