#include <iostream>
using namespace std;
int main() {
int S = 0;
for (int i = 2; i <= 1000; i += 2)
S += i;
cout << S;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main() {
int S = 0;
for (int i = 2; i <= 1000; i += 2)
S += i;
cout << S;
}