fork(3) download
  1. public class Main {
  2. public static void main(String[] args) {
  3. double investimento = 5000.00;
  4. double juros = 0.01;
  5.  
  6. double valorFinal = investimento * Math.pow(1 + juros, 12);
  7. System.out.println(valorFinal);
  8.  
  9. }
  10. }
Success #stdin #stdout 0.04s 320576KB
stdin
Standard input is empty
stdout
5634.125150659849