Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Lab 2b: Control Structure (Repetitive Structure)

Q1: Write a program to display numbers from 1 to 20.


(Note: use all types of repetitive structures)

[Note: Design the solution using pseudocode before coding]

Q2: Write a program to display first 20 even numbers on the screen. 0, 2, 4, 6, …38

(Note: use all types of repetitive structures)

[Note: Design the solution using flowchart before coding]

Q3: Write a program using counter controlled repetitive structure that will output the seven times table,
as follows:

7x1=7

7 x 2 = 14

7 x 3 = 21

……………

7 x 10 = 70

[Note: Design the solution using pseudocode before coding]

You might also like