#include<iostream> using namespace std; int main(){ int sum = 0; for(int i = 0; i<5; i++) sum += i, cout<<sum, sum = 1; return 0; }
Login in to like
Login in to comment
Hi @Samurai I have checked https://ideone.com/SHVmHo and the correct answer still 02345
2019 Nov 18, 8:01:09 PM
there are no correct answer. according to this code result will be "12222"
2019 Oct 28, 7:24:47 PM
or Read more about C++ Quizzes
Login in to like
Login in to comment