human
Program to find remainder without using modulo or % operator | Function to return num % divisor without using % ( modulo ) operator.
While divisor is smaller than n , keep subtracting it from num.
Driver code"
Solution in Python:
 ... What is a code to program to find remainder without using modulo or % operator and the other steps required?
assistant
#Here is code to program to find remainder without using modulo or % operator and the other steps required.
 def getRemainder ( num , divisor ) :
	while ( num >= divisor ) :
		num -= divisor ;
	return num ;
if __name__ == ' _ _ main _ _ ' :
	num = 100 ; divisor = 7 ;
	print ( getRemainder ( num , divisor ) ) ;