fork download
  1. #include<stdio.h>
  2. int main(){
  3. int sum=0;
  4. for(int i = 10; i<=20;i+=2){
  5. sum = sum+i;
  6. }
  7. printf("The sum of even number = %d",sum);
  8. }
  9.  
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
The sum of even number = 90