From aeb0d4f887a0c18c36b59acc7b5df08e62020c50 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sun, 11 Oct 2020 21:32:48 +0300 Subject: Removed old homeworks --- homework/81030/1,2-rust2html/example.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 homework/81030/1,2-rust2html/example.rs (limited to 'homework/81030/1,2-rust2html/example.rs') diff --git a/homework/81030/1,2-rust2html/example.rs b/homework/81030/1,2-rust2html/example.rs deleted file mode 100644 index 396aa0c..0000000 --- a/homework/81030/1,2-rust2html/example.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * The following function returns the first answer. - * It takes no arguments and returns an unsigned integer. - */ -fn answer1() -> usize { - return 42; // answer to the Ultimate Question of Life, the Universe, and Everything -} - -/* - * The following function returns the second answer. - * It takes no arguments and returns a floating-point number. - */ -fn answer2() -> f64 { - return -4.2; -} - -/* - * The following function returns the third answer. - * It takes no arguments and returns a single character. - */ -fn answer3() -> char { - return 'E'; -} - -fn main() { - println!("The \"First Answer\" is: '{}'", answer1()); - println!("The \"Second Answer\" is: '{}'", answer2()); - println!("The \"Third Answer\" is: '{}'", answer3()); -} -- cgit v1.3.1-26-gb76a