Facebook
From barisprlk0, 3 Years ago, written in Python.
Embed
Download Paste or View Raw
Hits: 125
  1. def ebob_bulma(sayı1,sayı2):
  2.    
  3.     i = 1
  4.     ebob = 1
  5.     while (i <= sayı1 and i <= sayı2 ):
  6.  
  7.         if ( not (sayı1 % i) and not (sayı2 % i)):
  8.             ebob = i
  9.         i += 1
  10.     return ebob
  11. sayı1 = int(input("Sayı-1:"))
  12. sayı2 = int(input("Sayı-2:"))
  13.  
  14. print("Ebob:",ebob_bulma(sayı1,sayı2))