0
How do i print the interim result instead of one result
for(i=0;i<5;i++) { x*=i
5 Answers
+ 6
You may have to elaborate a tad on your question.
By interim result, do you mean the consecutive values of x for each loop?
+ 6
You print the value of x for each run in the loop.
for(i=0;i<5;i++)
{
cout << x << endl;
x*=i;
}
cout << x << endl;
+ 3
for(i=0;i<5;i++) {
cout<<x*=i;
}
0
Yes
0
sa bende c++ ĂŒzerinde çalısıyorum tecrĂŒbeliysen bana yardımcı olurmusun telefon no :0545 587 29 30