fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int x =1 ;
  5. for (int i=3; i<5; i++){
  6. x +=i;
  7. }
  8. std::cout << x;
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
8