Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include <iomanip>
- #include <math.h>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "rus");
- int a;
- cout << "Введите число a \n";
- cin >> a;
- cout << "\n Число в 8-миричной системе:" << oct << a << endl;
- cout << "Число в 16-тиричной системе:" << hex << a << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement