Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
use std::collections::HashMap;
|
||||
fn main() {
|
||||
let mut olympic_medals = HashMap::new();
|
||||
olympic_medals.insert("United States", (1072, 859, 749));
|
||||
olympic_medals.insert("Soviet Union", (473, 376, 355));
|
||||
olympic_medals.insert("Great Britain", (246, 276, 284));
|
||||
olympic_medals.insert("Germany", (252, 260, 270));
|
||||
for (country, medals) in olympic_medals {
|
||||
println!("{} has had {} gold medals, {} silver medals, and {} bronze medals",
|
||||
country, medals.0, medals.1, medals.2);
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue