Math, asked by Navie646, 11 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

Answers

Answered by amitnrw
5

Answer:

Check remainder

Step-by-step explanation:

if m is an exact multiple of n

then remainder of m/n will  be 0

other Wise there will be a remainder

START

Input m & n

if ( m % n = 0)

{

Print  m/n

}

Else

Print 0

END

Similar questions