Saturday, August 13, 2022

Rust exercise: Hello, world-...ish

"Rust in Small Pieces" from a book I'm writing.

Given, "Hello, world!

Write a Rust program, greet, that has the following behaviors:

$ ./greet
Whom?

$ ./greet geophf
Hello, geophf!

$ ./greet Mary Sue
Hello, Mary!
Hello, Sue!

(answer

No comments:

Post a Comment