Changed preview code

This commit is contained in:
ms2300 authored and David Peter committed 2018-08-28 20:24:13 +02:00
1 parent 38544ed735
commit 4ea3e6bbb7
3 files changed
+8 -8

No files matched your search

-6
View File
@@ -1,6 +0,0 @@
// Hello World
fn main() {
println!("Hello World!");
}
+5
View File
@@ -0,0 +1,5 @@
// Output the square of a number.
fn print_square(num: f64) {
let result = f64::powf(num, 2.0);
println!("The square of {:.2} is {:.2}.", num, result);
}