Sample Past paper
Sample Past paper
d) Using examples, explain the differences between a pre-test and post-test loops (6 marks)
e) Functions in C programs communicate information using parameters. During function declaration, a function
prototype is created. Show how a function prototype is declared (3 Marks)
c) Write a program that accepts three integer numbers, determines the largest and the smallest of the numbers
then divides the largest by the smallest number displays: Largest, Smallest and the result of the division. The
program should display appropriate message when the smallest number is Zero (8 Marks)