Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let a = 3245;
- let b = 994;
- let c = 1239234;
- let max = 0;
- let min = 0;
- let mid = 0;
- if (a > b) {
- min = b;
- max = a;
- if (b > c) {
- min = c;
- mid = b;
- max = a;
- } else if (b < c) {
- if (c > a) {
- max = c;
- min = b;
- mid = a;
- } else if (c < a) {
- max = a;
- min = b;
- mid = c;
- }
- }
- console.log(max, mid, min);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement