fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. cout.setf(ios::showbase);
  8. int value=59;
  9. cout<<dec<<value<<endl;
  10. cout<<oct<<value<<endl;
  11. cout<<hex<<value<<endl;
  12. cout<<uppercase<<hex<<value<<endl;
  13. cout<<hex<<value<<endl;
  14. cout<<nouppercase<<hex<<value<<endl;
  15. cout<<dec;
  16. double real=95;
  17. cout<<showpoint<<real<<endl;
  18. cout<<noshowpoint<<real<<endl;
  19. return 0;
  20. }
Success #stdin #stdout 0s 5628KB
stdin
Standard input is empty
stdout
59
073
0x3b
0X3B
0X3B
0x3b
95.0000
95