This repository has been archived on 2023-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
2018-02-22 00:09:53 -06:00
|
|
|
// primitive_types3.rs
|
2020-07-10 21:01:38 -05:00
|
|
|
// Create an array with at least 100 elements in it where the ??? is.
|
2022-07-12 07:54:12 -05:00
|
|
|
// Execute `rustlings hint primitive_types3` or use the `hint` watch subcommand for a hint.
|
2016-02-07 11:12:24 -06:00
|
|
|
|
|
|
|
fn main() {
|
2023-03-24 16:18:51 -05:00
|
|
|
let a = [0; 100];
|
2016-02-07 11:12:24 -06:00
|
|
|
|
|
|
|
if a.len() >= 100 {
|
|
|
|
println!("Wow, that's a big array!");
|
|
|
|
} else {
|
|
|
|
println!("Meh, I eat arrays like that for breakfast.");
|
|
|
|
}
|
|
|
|
}
|