Added ex 19,20 functions and pop quiz

This commit is contained in:
Dave Gauer 2021-01-22 17:42:03 -05:00
parent a361b90a75
commit 08ec029f20
5 changed files with 82 additions and 4 deletions

View file

@ -12,7 +12,11 @@ pub fn main() void {
//
// We're just missing a couple things here. One thing we're NOT missing is the
// keyword 'pub', which is not needed here. Can you guess why?
// keyword "pub", which is not needed here. Can you guess why?
//
// Functions need to specify the type of value they return. The main() function
// above has a special return type "void", which means it returns nothing. This
// function returns something. What might that be?
//
??? deepThought() ??? {
return 42; // Number courtesy Douglas Adams