<?php

echo "Forneça um valor real: \n";
fscanf(STDIN, "%f", $valor_real);
printf("O valor real com dois dígitos de precisão é: %.2f\n", $valor_real);

?>

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: