1 // Output the square of a number.
2 fn print_square(num: f64) {
3 let result = f64::powf(num, 2.0);
4 println!("The square of {:.2} is {:.2}.", num, result);
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list