COMPUTER SCIENCE AND ENGINEERING
ALGORITHMS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The following algorithm should take a numerical input, and output the 1 to 12 times table for that number.Identify the correct algorithm
|
number=input("Enter a number")for x = 1 to 12print(number*x)next x
|
|
number=input("Enter a number")for x = 0 to 12print(number * x)next x
|
|
number=input("Enter a number")for x = 1 to 12print(number X x)next x
|
|
number=input("Enter a number")for x = 1 to 12print(number*number)next x
|
Explanation:
There is 1 question to complete.