Untitled

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

int main()
{
    int a;
    int n1;
    int n2; 
    int n3;
    cin >> a;
    n1 = a / 100;
    n2 = (a % 100)/10;
    n3 = a - n1 * 100 - n2 * 10;
    cout << n3*100 + n2*10+ n1;
}