Question: int i = 0; int sum=0; while(i //Can someone please explain what's going on in this code that is making the output of this code

int i = 0; int sum=0; while(i

//Can someone please explain what's going on in this code that is making the output of this code shown below? Please I need a clear explanation typed out

int countt = 1; while (countt

Also please explain why answer of the following above code is 2.

int i = 0; int sum=0; while(i //Can someone please explain what's

Output - Chap5loops (run) \begin{tabular}{l|l} D & 0 \\ D & 1 \\ & 3 \\ & 6 \\ \hdashline & 10 \\ 15 & 21 \\ & 28 \\ & 36 \\ & 45 \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!