Last active
December 8, 2021 15:14
-
-
Save AlecsFerra/e263a6912b897b62ae20a127db482e13 to your computer and use it in GitHub Desktop.
A compiler friendly calculator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(""" | |
main = do | |
print "Welcome to my addition calculator :)" | |
a <- getLine | |
b <- getLine | |
print $ add (read a) (read b) | |
""") | |
for i in range(1000): | |
for j in range(1000): | |
print(f'add {i} {j} = "{i} + {j}"') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment