Skip to content

Commit 7ad7495

Browse files
➕ Add Rust
1 parent 4f17e3f commit 7ad7495

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

switch.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
fn main() {
2+
match day_number {
3+
1 => println!("Saturday"),
4+
2 => println!("Sunday"),
5+
3 => println!("Monday"),
6+
4 => println!("Tuesday"),
7+
5 => println!("Wednesday"),
8+
6 => println!("Thursday"),
9+
7 => println!("Friday"),
10+
_ => return
11+
}
12+
}

0 commit comments

Comments
 (0)