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