#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
                char response;
                do
     {
         cout << "Enter positive integer to convert to Hexadecimal:\n\n";
                int number;
         cin >> number;
         cout << "Hexadecimal representation of "<< number << " is "
                << hex << uppercase << number << dec << '\n'
                << "\nMore (Y or N)? ";
         cin >> response;
     }
                while (response == 'Y' || response == 'y');
}
/*
OUTPUT:
Enter positive integer to convert to Hexadecimal:
16
Hexadecimal representation of 16 is 10
More (Y or N)? y
Enter positive integer to convert to Hexadecimal:
32
Hexadecimal representation of 32 is 20
More (Y or N)? n
*/