+ 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.

11th Sep 2018, 9:19 AM
Prabhat kumar chanchal
Prabhat kumar chanchal - avatar
1 Resposta
+ 1
hint: use if statements and the modulo (%) operator that checks remainder upon division
11th Sep 2018, 9:27 AM
hinanawi
hinanawi - avatar