+ 1

How do this program work?

this question for know who which understending program work. https://code.sololearn.com/c0j0q6F9nc6t/?ref=app

19th Apr 2017, 3:24 AM
Achmad Irianto Eka Putra
Achmad Irianto Eka Putra - avatar
3 Answers
+ 12
Simply, it compare values in variables and move the least one to val1, and max one to val3.
19th Apr 2017, 3:31 AM
Sachin Artani
Sachin Artani - avatar
+ 6
fix your spelling
19th Apr 2017, 3:32 AM
chris
chris - avatar
+ 3
As a personal exercise you can comment each line of code to describe what it does. You can do it until you won't need it anymore.
19th Apr 2017, 3:58 AM
seamiki
seamiki - avatar