麻烦帮忙看一下哪错了

lyh098 仙辞 2024-02-05 9:56:06 23

#include <bits/stdc++.h> using namespace std; int main() { int n, m, i, s; cin >> n >> m >> s; s = 0; i = m; while (i <= n) { if (i % 7 == 0) s = s + i; i++; } cout << s; }

{{ vote && vote.total.up }}