C++ Learning Notes 8
for loop statement:Code for the “Knock the Table” game: #include <iostream>using namespace std; int main(){int counter = 0;for (int i = 1; i <= 100; i++) {int ge = i % 10;int shi = i / 10 % 10; if (ge == 7 || shi == 7 || i % 7 == 0) {cout << … Read more