<body> <?php $valorInvestido = 300; $meses = 3; $acumulado = $valorInvestido; for ($i = 0; $i < $meses; $i++) { $acumulado += $acumulado * 0.005; } echo "O valor acumulado após $meses meses é de: R$ " . number_format($acumulado, 2, ",", "."); ?> </body>

juliosmith21

25/08/2023, 13:41

Terei 900 reais