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
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
English,
6 months ago
Geography,
6 months ago
Business Studies,
11 months ago
Business Studies,
11 months ago
Social Sciences,
1 year ago