Tuesday, August 30, 2022

Rust pop-quiz 3: modules

Rust pop-quiz 3, modules

From what you've learned on Rust pop-quiz 2, Summer

Create a module utils.rs that exports 2 functions 

  • get_args() that gets the command line arguments 
  • get_nums() that gets the arguments as numbers.

Then:

Rewrite summer.rs, using get_nums()

No comments:

Post a Comment