Domanda di colloquio di Qualcomm

Let's suppose Modulus operation (%) is not supported by a system. Write a program to implement modulus operation