fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int i;
  6. i=0;
  7. while(i<=20)
  8. {
  9. cout<<i<<" ";
  10. i=i+5;
  11. }
  12. cout<<endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
0 5 10 15 20