Hartismere School

An outstanding coeducational secondary school and sixth form college

Sorry - this website requires a modern browser that supports HTML5

3 Using FOR Loops

Program 1

Write a program which asks for your name and then displays it 5 times on the screen.

Program 2 

Create a program that outputs 'I love Computing' into a list box as many times as the user requests. Each line should also be numbered.

Program 3

Create a program that will write 'lines' for students who are in detention. The user should be able to enter the line to be repeated and the number of lines they want produced. The lines should be outputted using a FOR loop into a listbox.