Page 1 of 1

Algorithms 2 / Programming 1 a) What would be the output of the following piece of code? (4 marks) X=12 L=[] for i in ra

Posted: Thu Jul 14, 2022 2:07 pm
by answerhappygod
Algorithms 2 Programming 1 A What Would Be The Output Of The Following Piece Of Code 4 Marks X 12 L For I In Ra 1
Algorithms 2 Programming 1 A What Would Be The Output Of The Following Piece Of Code 4 Marks X 12 L For I In Ra 1 (26.51 KiB) Viewed 16 times
Algorithms 2 / Programming 1 a) What would be the output of the following piece of code? (4 marks) X=12 L=[] for i in range( X) : if X%(i+1)==0 L.append(i) print (L) b) What are the three main types of operators? (3 marks) c) Sketch a flowchart for the following task: Ask the user to input a number as long as the number is smaller than Threshold =10 (5 marks)