fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. for (int i=0;i<=120;i++)
  6. {
  7.  
  8. if (i%2==0)
  9.  
  10. cout<<i;
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
02468101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698100102104106108110112114116118120