C - Последняя цифра

Anonymous
c_cpp
09/25/2023 12:43 PM
168 B
14
Indexable
#include <iostream>

using namespace std;

int main() {
    int n;
    cin >> n;
    cout << n % 10;
    return 0;
}
Editor is loading...