Browse Source

Modulo experiment

DricomDragon 5 năm trước cách đây
mục cha
commit
0fc282bb60
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      operators/main.cpp

+ 8 - 0
operators/main.cpp

@@ -0,0 +1,8 @@
+#include <iostream>
+
+int main(){
+	for (int k(-2); k <= 7; k ++)
+		std::cout << k << "%4 = " << k%4 << std::endl;
+
+	return 0;
+}