+ 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
7 odpowiedzi
+ 1
Looks like your function are wrong
Should be void instead of struct triangle
As you arnt returning anything
+ 1
https://code.sololearn.com/ctL1w5x4ATL4/?ref=app
Compiles. But not expected output
0
What code ?
0
forgot to insert the link 🌚💔
EDITED ✅
0
but it's not ordered
0
check now i added insert sort algorithm instead. Goodluck
0
it worked
thanks, appreciated 🙏🏻