Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: SRW
Problemset: ผลรวมตัวเลข
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-07 21:38:34
#include <iostream>
using namespace std;
int main(){
int n,m;
cin >> n >> m;
int total = 0;
for (;n<m;n++){
if (n%2==0){
total += n;
}
if (n%3 == 0){
total += n;
}
}
cout << total;
}