Sunday, December 18, 2022

Rust pop-quiz: Percentage of-function

Rust pop-quiz!

Okay, so you have representation. Great!

OR. IS. IT! 😤

What's 6% of 20?
What's 5% of 100?
What's 87% of 12?

define the function, `of`, that computes the answers.


No comments:

Post a Comment