Computer Science, asked by jitendrachoudhary8, 9 months ago

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.

Answers

Answered by sarcasticaf
0

Following is the pseudo code :

if m%n == 0

print m/n

else

print 0

Similar questions