Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let input = ['5', '2'];
- // let input = ['3', '4'];
- // let input = ['5.5', '4.5'];
- let print = this.print || console.log;
- let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
- let a = Number(gets());
- let b = Number(gets());
- if ( a > b){
- let temp = a; // the temporary variable that kept a-value
- a = b;
- b = temp;
- }
- print(`${a} ${b}`) // OUTPUT => 2 5
Add Comment
Please, Sign In to add comment