Display decimal value as hexadecimal value
#include <iostream> using namespace std; int main(void){ cout << "Decimal value " << dec << 0xFF; cout << "\nOctal value " << oct << 10; cout << "\nHexadecimal value " << hex << 255; }