Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- using namespace std; //i dont know why this is necessary
- int main ()
- {
- char vocal; //defino vocales
- cout<<"Introduzca una vocal minuscula:\n";
- cin>>vocal;
- switch (vocal)
- {
- case 'a':
- cout<<"La vocal es la a\n";
- break;
- default:
- cout<<"no hay vocal\n";
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement