Skip to content

Commit

Permalink
Fixed function call
Browse files Browse the repository at this point in the history
  • Loading branch information
ErickSimoes committed Oct 10, 2021
1 parent 8846933 commit 7f854fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions GreedyAlgorithms/EgyptianAlgorithm.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#print a fraction in Egyptian Form Greedy
from typing import Match


import math

def egyptianFraction(nr, dr):
print("The Egyptian Fraction" + "Form of {0}/{1} is". format(nr, dr), end="\n")

Expand All @@ -20,5 +19,5 @@ def egyptianFraction(nr, dr):
else:
print(" 1/{0}" .format(ef[i]), end=" ")

#calling the function
egyptianFraction(6, 14)
#calling the function
egyptianFraction(6, 14)

0 comments on commit 7f854fe

Please sign in to comment.