Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Test {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Scanner reader = new Scanner (System.in);
- double KVH=1,$=1;
- System.out.println("El nombre del cliente es Pablo");
- System.out.print("Introduce los KVH gastados del cliente: ");
- KVH=reader.nextInt();
- if (KVH<140){
- $=(3.20*KVH);
- System.out.println("Los KVH consumidos son: " + KVH);
- System.out.println("El costo total sera: " + $);
- }
- else{
- System.out.print("Informacion Invalida");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement