Lab 1
Lab 1
o
● Compress the two files run and src into solution.zip file
Notes
● Solutions will be marked by Automated Marking Software.
(1 mark, file to be edited: Q1.c)
Write a program that allows the user to enter dividend called a. The program must calculate the
quotient and the remainder of a divided by 2.
Sample
Below is an example of how the program will run:
Sample 1
Input Output
Please enter any integer: 9 The quotient of 9 divided by 2 is 4
The remainder of 9 divided by 2 is 1