TORONTO KIDS COMPUTER CLUB | Tuesday 17:00 Python Practice – 08 20.11.03.
18573
post-template-default,single,single-post,postid-18573,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Tuesday 17:00 Python Practice – 08 20.11.03.

05 Nov Tuesday 17:00 Python Practice – 08 20.11.03.

Question 1:
Please use  for loop to create the multiplication table program. After asking which table the user wants, ask her how high the table should go. The output should look like this:

```Sample Input:
Which multiplication table would you like? 7
How high do you want to go? 12

Sample Output:
Here’s your table:
7 x 1 = 7
7 x 2 = 14
7 x 3 = 21
7 x 4 = 28
7 x 5 = 35
7 x 6 = 42
7 x 7 = 49
7 x 8 = 56
7 x 9 = 63
7 x 10 = 70
7 x 11 = 77
7 x 12 = 84

```

Question 2:
As you used a for loop in your program in question 1. Now, try doing the same question but by using a while loop.

No Comments

Sorry, the comment form is closed at this time.