Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Test {
  3.  
  4. /**
  5. * @param args
  6. */
  7. public static void main(String[] args) {
  8. // TODO Auto-generated method stub
  9. Scanner reader = new Scanner (System.in);
  10. double KVH=1,$=1;
  11.  
  12. System.out.println("El nombre del cliente es Pablo");
  13.  
  14. System.out.print("Introduce los KVH gastados del cliente: ");
  15. KVH=reader.nextInt();
  16.  
  17. if (KVH<140){
  18. $=(3.20*KVH);
  19. System.out.println("Los KVH consumidos son: " + KVH);
  20. System.out.println("El costo total sera: " + $);
  21. }
  22. else{
  23. System.out.print("Informacion Invalida");
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement