NPTEL Introduction to Programming in C Assignment 1 Question 2
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.
Two integers, say M and N.
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.
100 5
20
16 4
4
4 16
0
45 49
0