fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int m,wa;
  6. wa=0;
  7. for(m=2;m<=100;m=m+2){
  8. wa=wa+m;
  9. }
  10. printf("偶数の和=%d\n",wa);
  11. return 0;
  12.  
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
偶数の和=2550