Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let grade = "A";
- match grade {
- "A" => println!("Wonderful"),
- "B" => println!("Good"),
- "C" => println!("So so"),
- "D" => println!("It could be better"),
- "F" => println!("Oh, oh"),
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement