Fix grammatical error.

This commit is contained in:
Nicolás A. Ortega Froysa 2022-11-17 17:36:51 +01:00
parent 9ef5aee315
commit fd2a7b23de

View File

@ -6,9 +6,12 @@
<body> <body>
<?php <?php
$num_dice = rand(1,10); $num_dice = rand(1,10);
?>
<h1><?= $num_dice ?> dados</h1> if ($num_dice == 1)
<?php echo "<h1>$num_dice dado</h1>";
else
echo "<h1>$num_dice dados</h1>";
$max = -1; $max = -1;
for($i = 0; $i < $num_dice; $i++) { for($i = 0; $i < $num_dice; $i++) {
$roll = rand(1,6); $roll = rand(1,6);