fork download
  1. fn main() {
  2. let mut v = [7, 8, 3, 6, 4];
  3. v.sort();
  4. v.reverse();
  5. v.iter().for_each(|x| println!("{}", x));
  6. }
Success #stdin #stdout 0s 4912KB
stdin
Standard input is empty
stdout
8
7
6
4
3