Вино

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
314 B
0
Indexable
Never
#include <iostream>
#include <string>
using namespace std;

int main()
{
    int a{126}, b;
    cout << "Введите трёхзначное число: " << endl;
    cin >> a;
    b = a % 10;
    cout << b;
    a /= 10;
    b = a % 10;
    cout << b;
    a /= 10;
    b = a % 10;
    cout << b;
    return 0;
}