Question: Write a while loop to add all the even numbers to sum, between 0 and 100 inclusive, that is, like 0 + 2.+ 4 +
Write a while loop to add all the even numbers to sum, between 0 and 100 inclusive, that is, like 0 + 2.+ 4 + 6 +.. + 96 +98 + 100. Use only two integer variables i and sum. Edit View Insert Format Tools Table 12pt v Paragraph v B I I UAV 2 Tev : MacBook Air
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
