#include <iostream>using namespace std; int main() {int x = 19;cout << x%10 << endl << x - x%10;return 0;}
Standard input is empty
9 10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!