fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. for(int i=2;i<=20;i++){
  6. if(i%2 == 0){
  7. printf("%d\n",i);
  8. }
  9. }
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
2
4
6
8
10
12
14
16
18
20