#include <iostream>     // Declarations of cin, cout and 
using namespace std;    // manipulators oct, hex, ... 

int main() /*from www  .j  a  va  2 s .c om*/
{ 
    int number; 
    cout << "Please enter an integer: "; 
    cin >> number; 
    cout << uppercase                           // for hex-digits 
           << " octal  \t decimal  \t hexadecimal\n " 
           << oct << number << "       \t " 
           << dec << number << "       \t " 
           << hex << number << endl; 
    return 0; 
}
