Program to find remainder without using modulo or % operator | C # program to find remainder without using modulo operator ; This function returns remainder of num / divisor without using % ( modulo ) operator ; Driver program to test above functions
using System ; class GFG { static int getRemainder ( int num , int divisor ) { return ( num - divisor * ( num / divisor ) ) ; } public static void Main ( ) { Console . Write ( getRemainder ( 100 , 7 ) ) ; } }