0 votes
in Computer by (90.1k points)
\begin{aligned}
&\text { How many times will the following loops execute? Which one of them is Entry } \\
&\text { Control and which one is Exit? } \\
&\text { Loop } 1 \\
&\text { int } \mathrm{i}=10, \text { sum }=0 ; \\
&\text { while }(\mathrm{i}>1) \\
&\{\text { sum+=i; } \\
&\mathrm{i}-=3 ; \\
&\} \\
&\text { Loop } 2 \\
&\text { int } \mathrm{i}=10, \text { sum }=0 ; \\
&\text { do } \\
&\{\text { sum+ }=\mathrm{i} ; \\
&\mathrm{i}-=3 ; \\
&\} \text { while }(\mathrm{i}>1) ;
\end{aligned}

3 Answers

0 votes
by (90.1k points)
Following loops will execute 3 times.

Loop 1 is Entry control loop and Loop 2 is Exit control loop.
0 votes
by
buy tadalafil 10mg online cheap <a href="https://ordergnonline.com/">order tadalafil 40mg sale</a> ed pills gnc
0 votes
by
cialis tablets <a href="https://ordergnonline.com/">order tadalafil 20mg sale</a> male ed drugs
Welcome to Admisure, where you can ask questions and receive answers from other members of the community.
...