Advertisement
keviinrm7

ES VOCAL O ES CONSONANTE

May 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package pkg999;
  7. import java.util.Scanner;
  8. /**
  9. *
  10. * @author lab5-pc5
  11. */
  12. public class Main {
  13.  
  14. /**
  15. * @param args the command line arguments
  16. */
  17. public static void main(String[] args) {
  18. // TODO code application logic here
  19. String l;
  20. Scanner letra = new Scanner(System.in);
  21. System.out.print("Ingrese una letra: ");
  22. l = letra.next();
  23. if (l.equals("a") || l.equals("e") || l.equals("i")|| l.equals("o")|| l.equals("u"))
  24. System.out.println("Es vocal");
  25. else
  26. System.out.print("es consonante");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement