Help! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help!

I don't know what's wrong with this code. It works but it doesn't give right results. Can you help me? https://code.sololearn.com/c41hKFXjhHsn/?ref=app

2nd May 2017, 8:32 PM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar
6 Answers
0
You were right yesterday and today. How stupid am I? I wrote cin >> s1, s2 when I should had written cin >> s1 >> s2.
3rd May 2017, 11:17 AM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar
+ 9
What are you trying to achieve?
2nd May 2017, 8:48 PM
J.G.
J.G. - avatar
+ 1
Thanks for help.
3rd May 2017, 12:19 PM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar
0
pythagorean theorem
2nd May 2017, 8:51 PM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar
0
The formula is right.. Something is wrong in calculation.
2nd May 2017, 9:22 PM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar
0
I did it and it shows me the same
2nd May 2017, 9:39 PM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar