+ 1

Write a program for calculate hypotens of triangle , if other two side is given

hi

3rd Feb 2017, 4:09 AM
_$ubha$h_ iitd
_$ubha$h_ iitd - avatar
10 ответов
+ 10
but I don't like algebra go away shapes!!!
3rd Feb 2017, 4:21 AM
Ahri Fox
Ahri Fox - avatar
+ 9
too many numbers I don't like math you should make it yourself if you're so interested in it! it'll make you a better coder!
3rd Feb 2017, 4:23 AM
Ahri Fox
Ahri Fox - avatar
+ 8
a = input() b = input() h = (int(a)**2+int(b)**2)**0.5 print(h) Try it here: https://code.sololearn.com/c2G6ZfQJg4OT/?ref=app For right-angled triangles only
3rd Feb 2017, 4:31 AM
Jafca
Jafca - avatar
+ 8
@Ahri Fox Enter the input like this: 12 13 (basically press enter)
3rd Feb 2017, 4:33 AM
Jafca
Jafca - avatar
+ 8
@Jafca WOAH WOAH HOLD ON I DIDN'T KNOW THIS WAS POSSIBLE IMA MAKE SO MANY NEW CODES WITH THIS!!! WOOOOOOOOOOOOO
3rd Feb 2017, 4:40 AM
Ahri Fox
Ahri Fox - avatar
+ 7
@Jafca code playground only allows one input But yeah you did it so gj
3rd Feb 2017, 4:32 AM
Ahri Fox
Ahri Fox - avatar
+ 6
@Ahri Fox Really? It says, "Split multiple inputs into separate lines"... Anyway, enjoy 🍰
3rd Feb 2017, 4:43 AM
Jafca
Jafca - avatar
+ 3
the multike inputs in seperate lines doesn't seem to work in all scenarios though, where it can't guess in advance whether another input will appear (unless they've updated it at some point, with some form of magic)
4th Feb 2017, 9:14 PM
Phil
Phil - avatar
0
but why
3rd Feb 2017, 4:21 AM
_$ubha$h_ iitd
_$ubha$h_ iitd - avatar