Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Test si es vocal en Rust con matches!
- fn vocal (c:char)->bool{
- matches! (c,'a'|'e'|'i'|'o'|'u')
- }
- fn main (){
- for n in 'a'..='z'{
- println!("{} => {}",n,vocal(n) )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement