+ 1

What is the problem

this is a code from program to get sides values of different triangles, calculate their area, order them in ascending order and print them in the same style (sides' values). for example input: (for 3 triangles) 7 24 25 5 12 13 3 4 5 output: 3 4 5 5 12 13 7 24 25 https://code.sololearn.com/clYh91MK8ZsQ/?ref=app

27th Apr 2022, 10:21 PM
rah123
7 Respuestas
+ 1
Looks like your function are wrong Should be void instead of struct triangle As you arnt returning anything
27th Apr 2022, 11:28 PM
Raul Ramirez
Raul Ramirez - avatar
+ 1
https://code.sololearn.com/ctL1w5x4ATL4/?ref=app Compiles. But not expected output
27th Apr 2022, 11:28 PM
Raul Ramirez
Raul Ramirez - avatar
0
What code ?
27th Apr 2022, 10:58 PM
Raul Ramirez
Raul Ramirez - avatar
0
forgot to insert the link 🌚💔 EDITED ✅
27th Apr 2022, 11:02 PM
rah123
0
but it's not ordered
28th Apr 2022, 12:10 AM
rah123
0
check now i added insert sort algorithm instead. Goodluck
28th Apr 2022, 12:33 AM
Raul Ramirez
Raul Ramirez - avatar
0
it worked thanks, appreciated 🙏🏻
28th Apr 2022, 5:13 AM
rah123