Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sentinel1909/57-exercises
A repo documenting my journey to do 57 programming exercises in Rust
https://github.com/sentinel1909/57-exercises
Last synced: 6 days ago
JSON representation
A repo documenting my journey to do 57 programming exercises in Rust
- Host: GitHub
- URL: https://github.com/sentinel1909/57-exercises
- Owner: sentinel1909
- License: mit
- Created: 2022-04-16T15:13:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-21T02:39:41.000Z (10 months ago)
- Last Synced: 2024-01-21T03:26:34.510Z (10 months ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 57-exercises
A repo documenting my journey to do 57 programming exercises in Rust.## Exercise 1: Saying Hello
### Problem Statement:
The "Hello, World" program is the first program you learn to write in many languages, but doesn't involve any input.
So create a program that prompts for your name and prints a greeting using your name.### Example Output:
What is your name? Jeff
Hello, Jeff, nice to meet you!### Constraint:
Keep the input, string concatenation, and output separate.### Solution:
To run:```
cd say-hello
cargo run
```### Output:
When the program is run, it will pause after displaying the initial greeting to wait for the user to input their name.```
What is your name? *name*
Hello, *name*, nice to meet you!
```