Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <iomanip>
  4. #include <math.h>
  5. using namespace std;
  6. int main()
  7. {
  8. setlocale(LC_ALL, "rus");
  9. int a;
  10. cout << "Введите число a \n";
  11. cin >> a;
  12. cout << "\n Число в 8-миричной системе:" << oct << a << endl;
  13. cout << "Число в 16-тиричной системе:" << hex << a << endl;
  14. system("pause");
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement