Conceptos Básicos
Publicado por Brayan Sanabria (9 intervenciones) el 29/12/2019 00:19:03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html>
<head>
<title>Problema</title>
</head>
<body>
<?php
$num = rand(1, 100);
echo $num;
if ($num < 50) {
echo "El número es menor a 50<br>.";
}else {
if ($num = 50){
echo "El número es igual a 50.";
}else {
if ($num > 50){
echo "el numero es mayor a 50.";
}
}
}
?>
</body>
</html>
buenos dias me podrian decir cual es el error del código?
Valora esta pregunta


0