计算机25(1,2)实验二


Comments


  • 0
    302025315074  commented on Oct. 14, 2025, 12:14 a.m.

    include<iostream>

    using namespace std; int main() { int N; while (cin >> N) { if (N % 4 == 0) { cout << N<<"is the olympic year." << endl; } else { cout << N<<"is not the olympic year."; } }

    return 0;

    }


  • 0
    302025315384  commented on Oct. 14, 2025, 12:13 a.m.

    include<iostream>

    using namespace std; int main(){ int n; cin>>n; if(n%4==0) cout<<n<<"is the olympic year."<<endl; else cout<<n<<"is not the olympic year."<<endl; return 0; }