Programming roadmap 1
Programming roadmap 1
2- Write code that prints the value of the loop control variable. Write a for loop that runs 7 times,
each time the value of the loop control value should be output.
To achieve this you are to use a for loop that runs 10 times.
4- Modify the code you wrote in Q3 to now output any table that the user desires.
Take input from the user and print table accordingly.
So if user types 5 , print table of 5 e.g. 5 x 1 = 5 , 5 x 2 = 10 ….. 5 x 10 = 50
If user types 3, print table of 3 e.g. 3 x 1 = 3 , 3 x 2 = 6 …… 3 x 10 = 30
To achieve this you are to use a for loop that runs 10 times.
Recommended Practice:
Practice similar questions from past papers of old syllabus computer studies 7010
The last or 2nd last question in each paper is related to programming