Command | Description |
---|---|
cargo new | Create a new Rust project |
cargo build | Build the Rust project |
cargo run | Build and run the Rust project |
cargo test | Run tests in the Rust project |
cargo doc | Generate documentation for the Rust project |
cargo clean | Clean the target directory of the Rust project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in range(1, 101): | |
# `and`-Bedingung hinzugefügt, damit "Fizz" **Ausschließlich** bei `i % 3 == 0` ausgegeben wird. | |
if i % 3 == 0 and i % 5 > 0: | |
print("Fizz") | |
# `and`-Bedingung hinzugefügt, damit "Buzz" **Ausschließlich** bei `i % 5 == 0` ausgegeben wird. | |
if i % 5 == 0 and i % 3 > 0: | |
print("Buzz") | |
if i % 5 == 0 and i % 3 == 0: |