diff options
author | standenboy <standenboy@seacrossedlovers.xyz> | 2023-12-15 10:19:20 +0000 |
---|---|---|
committer | standenboy <standenboy@seacrossedlovers.xyz> | 2023-12-15 10:19:20 +0000 |
commit | 4a95719d58a708ad55b1389631d6339047f786a0 (patch) | |
tree | 26cb6fc2dbe7fa75f57f1d6fb13aff8955772b56 /comp/work/6/cake.py |
added existing work
Diffstat (limited to 'comp/work/6/cake.py')
-rwxr-xr-x | comp/work/6/cake.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/comp/work/6/cake.py b/comp/work/6/cake.py new file mode 100755 index 0000000..23f4e44 --- /dev/null +++ b/comp/work/6/cake.py @@ -0,0 +1,8 @@ +while True: + eggs = int(input("how many eggs are there: ")) + if eggs < 8: + break +flour = eggs * 100 +sugar = eggs * 50 + +print("you will need", flour, "grams and", sugar, "grams") |