What happens if the user enters the value 99 into the supplied programme?#include void main() int I printf("Enter a number:"); scanf("percent d", I / 99 is provided as input. if I percent 5 == 0) printf("nNumber entered is divisible by 5"); A. Type a number:
A. 99 The number is divisible by five.
B. Type a number: 99
C. a compilation mistake
D. Error at runtime
Answer:B
What happens if the user enters the value 99 into the supplied programme?#include void main() int I printf("Enter a number:"); scanf("percent d", I / 99 is provided as input. if I percent 5 == 0) printf("nNumber entered is divisible by 5"); A. Type a number:
A. 99 The number is divisible by five. B. Type a number: 99 C. a compilation mistake D. Error at runtime
Explanation: Because there are no syntax errors in this programme, it is executed. It is obvious that 99 is not divisible by 5. As a result, the if statement will not be executed, and the programme will end.