change spec to markdown

This commit is contained in:
2022-09-22 20:56:06 +01:00
parent 98c2f36a61
commit c0cd10caf1

20
app.py Normal file
View File

@@ -0,0 +1,20 @@
print('1. solve hypotenuse')
print('2. solve short side')
print('3. quit')
while True then
choice < - input('choice: ')
if choice == 1 then
a = input('a: ')
b = input('b: ')
c = (a*a+b*b)
print('c:', c)
elif choice == 2 then
b = input('b: ')
c = input('c: ')
a = (c*c-b*b)
print('a:', a)
else then
quit()
endif
endwhile