ZeroJudge & UVa Online Judge answers
#include using namespace std; #include int main() { int a,b; while(cin>>a>>b) { int sum=0; for(int i=a;i<=b;i++) { if(i%2==0) //別種寫法? sum += i; } cout< } return 0; }
This comment has been removed by the author.
This comment has been removed by the author.
ReplyDelete