Department of Computer Science CSC111A – COMPUTER PROGRAMMING I WORKSHOP *Note: Write C Programs to find your answers -1- Department of Computer Science CSC111A – COMPUTER PROGRAMMING I WORKSHOP *Note: Write C Programs to find your answers ASSIGNMENT 3 Write a C program to input 2 integers. Find out all the values between these integers that can be divisible by 5. If the number is divisible by 5, print the statement "The number x is divisible by 5". If there are no numbers that can be divisible by 5, print the statement "There are no numbers that can be divisible by 5" INPUT : 5, 16 OUTPUT : The number 5 is divisible by 5 The number 10 is divisible by 5. The number 15 is divisible by 5. INPUT : 16, 5 OUTPUT : The number 5 is divisible by 5 The number 10 is divisible by 5. The number 15 is divisible by 5. INPUT : 5, 5 OUTPUT : The number 5 is divisible by 5 INPUT : 7, 9 OUTPUT There are no numbers that can be divisible by 5. -2-
© Copyright 2026 Paperzz