fn main() { let mut v = [7, 8, 3, 6, 4]; v.sort(); v.reverse(); v.iter().for_each(|x| println!("{}", x));}
Standard input is empty
8 7 6 4 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!