4. Find first n even numbers Programming Fundamentals | Lecture-9 START count = count + 1 STOP count < n count = 0 Yes No DISPLAY even even = 0 even = even + 2 All odd numbers are skipped by this solution
5. Find first n odd numbers Programming Fundamentals | Lecture-9 START count = count + 1 STOP count < n count = 0 Yes No DISPLAY odd odd = -1 odd = odd + 2 All even numbers are skipped by this solution
6.
7.
8. Programming Fundamentals | Lecture-10 START count = count + 1 STOP count < n count = 0 No No DISPLAY count âis oddâ READ n count % 2 == 0 DISPLAY count âis evenâ Yes Yes
9.
10.
11. Programming Fundamentals | Lecture-10 START count = count + 1 STOP count < n count = 0 Yes No READ n count % 3 == 0 DISPLAY count Yes No
12.
13. Programming Fundamentals | Lecture-10 START count = count + 1 STOP count < n count = 0 Yes No READ n Yes No count % 2 != 0 count % 3 == 0 DISPLAY count Yes No
14.
15. Programming Fundamentals | Lecture-10 START count = count + 1 STOP count < n count = 0 Yes No DISPLAY num * count READ num, n num != 0 No Yes No