fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. int a=1;
  6.  
  7. while(a<=100)
  8. {
  9. if(a % 2 == 0)
  10. {
  11. printf("%d,",a);
  12. }
  13. a++;
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,