#include <iostream> using std::cout; using std::cin; using std::hex; int main() { int val; cout << "Enter a number: "; cin >> val; cout << "This is your number: "; cout << hex << val; return 0; }