Study the flowchart below and answer the question that follow.
(a) What would the flowchart generate as output if the value of N at input was:
(i) 6? (2 marks)
(ii) 1? (2 marks)
(b) Write a pseudo-code that does the same thing as the flowchart above. (7 marks)
(c) Modify the flowchart so as to reject an input below 0 and to avoid the looping when the input is 0. (4 marks)