"Today is my lucky day. I came up with five new tasks for you. I'm brimming with creativity. Good luck, my friend. You will need it..."
Use a for loop to display even numbers from 1 to 100 inclusive. Display each value on a new line.
Drawing a rectangle
Use the keyboard to enter two numbers m and n. Using a for loop, display an n x m rectangle made of eights. Here's an example: m=2, n=4 8888 8888
Triangle of eights
Using a for loop, display a right triangle of eights, with a base of 10 and a height of 10. Example output: 8 88 888 8888 88888 888888 8888888 88888888 888888888 8888888888
Using a for loop to display: - a horizontal line of 10 eights - a vertical line of 10 eights (do not count any of the eights in the horizontal line as part of this vertical line).
Enter a name from the keyboard and use a for loop to display the following 10 times: loves me. Example output for the name "Scarlett": Scarlett loves me. Scarlett loves me. Scarlett loves me. Scarlett loves me. Scarlett loves me. Scarlett loves me. Scarlett loves me. Scarlett loves me. Scarlett lo