write a program to generate the first ten even numbers while using while loop
Answers
Answered by
0
Answer:
Line 1: Initialises i = 1 as we have to display first 10 natural numbers.
Line 2: Start of loop. Loop iterates till i<=10 is true.
Line 3: Displays the value of i.
Line 4: Increments the value of i.
Similar questions