main.cpp 127 B

12345678
  1. #include <iostream>
  2. int main(){
  3. for (int k(-2); k <= 7; k ++)
  4. std::cout << k << "%4 = " << k%4 << std::endl;
  5. return 0;
  6. }