Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Test si es una vocal en Rurst con matches!
AntonioVillanueva
Jan 24th, 2025
995
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Rust
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
//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
Public Pastes
by the power of God zip
20 min ago | 0.01 KB
Untitled
22 min ago | 11.33 KB
Untitled
45 min ago | 0.40 KB
Untitled
46 min ago | 0.55 KB
Untitled
49 min ago | 0.81 KB
Untitled
51 min ago | 0.88 KB
Untitled
53 min ago | 0.50 KB
Untitled
1 hour ago | 0.27 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!