Advertisement
keviinrm7

IF - ELSE

May 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 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 pkg2.pkg1;
  7. import java.util.Scanner;
  8.  
  9. public class Main {
  10.  
  11. /**
  12. * @param args the command line arguments
  13. */
  14. public static void main(String[] args) {
  15. // TODO code application logic here
  16. double calificacion;
  17. Scanner t = new Scanner(System.in);
  18. System.out.print("Calificacion: ");
  19. calificacion=t.nextDouble();
  20. if(calificacion>=7)
  21. System.out.println("VETE");
  22. else
  23. System.out.println("QUEDATÉ");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement