Saturday, July 8, 2023

Rust pop-quiz: coffee

This #Rust pop-quiz is from @CryptoNCoffeee morning greeting.



In Rust:

1 .. 6 gives you [1,2,3,4,5] ('exclusive range')
1 ..= 6 gives you [1,2,3,4,5,6] ('inclusive range')

Write a Rust program that tells Jess to whom EACH of those coffees belong.

My program output:




answer: ./coffee? tea? ... or me? 😎

 

No comments:

Post a Comment