TOPIC
Presentation ERROR e MEU :) DE SALTO ALTO
ladmgomes asked 6 years ago
Scanner inp = new Scanner(System.in);
int ent = inp.nextInt();
int n = inp.nextInt();
float total = 0;
if(ent == 1){
total = (float) (n * 4.00);
}
else if(ent == 2){
total = (float) (n* 4.50);
}
else if(ent == 3){
total = (float) (n* 5.00);
}
else if(ent == 4){
total = (float) (n* 2.00);
}
else if(ent == 5){
total = (float) (n* 1.50);
}
System.out.printf("Total: R$ %.2f \n", total);
como isso ta errado a saida e crtl c - crtl v