提交时间:2024-04-20 20:13:14
运行 ID: 45904
#include <bits/stdc++.h> using namespace std; int main(){ int m,n, sum=0; cin>>m>>n; int i=m; while(i<=n){ if(i%2==0){ sum=sum+i; } i++; } cout<<sum; return 0; }