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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!