+ 1
Study help in C language
You are given two integers, say M and N. You must check whether M is an exact multiple of N, without using loops. You have to output 0 if M is not a multiple of N. You have to output M/N if M is a multiple of N. Input----- Two integers, say M and N. Output------ You have to output 0 if M is not a multiple of N. You have to output M/N if M is a multiple of N.
1 Answer
+ 1
hint: use if statements and the modulo (%) operator that checks remainder upon division