#include <iostream>using namespace std; int main() { int n; cin >> n; cout << n % 10; return 0;}
179
9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!