fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin>>n;
  7. cout<<(n%10)<<endl;
  8. cout<<n%101<<endl;
  9. cout<<n%1011<<endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5448KB
stdin
1234
stdout
4
22
223