Demo entry 4152527

teste

   

Submitted by anonymous on Mar 23, 2016 at 22:05
Language: Python. Code size: 148 Bytes.

def interativoMDC(a, b):
	for i in range(a, 0, -1): # Loop até zero
		if a%i == 0 and b%i == 0: # Testando divisão
			return i # Retornando valor

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).