+ 5
Inform a balance and print the balance with a 1% readjustment.
help me...this is homework.
3 odpowiedzi
+ 12
System.out.print(1.01*balance);
//more effective
+ 9
you should do you homework alone 😁
+ 5
I did it this way...
public class MainClass {
public static void main(String[] args) {
double saldo;
saldo = Double.parseDouble(JOptionPane
.showInputDialog("ENTRE COM O SALDO")); // DIGITEI 100
// saldo = saldo + (saldo * 0.01);
// Que é a mesma coisa que:
saldo += (saldo * 0.01);
System.out.println("O SALDO ATUAL É DE: " + saldo);
}
}