fork(2) download
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n;
  7. cin >> n;
  8. cout << hex << n << " ";
  9. cout << oct << n << " ";
  10. cout << dec << n << " ";
  11. }
  12.  
Success #stdin #stdout 0s 2900KB
stdin
1234
stdout
4d2 2322 1234