Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>primer</title> </head> <..
Decoded Output download
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>primer</title>
</head>
<h2>Ejercicio 1 </h2>
<body>
<form action="Procesa1.php" method="get">
Ingrese primer nmero <input type="number" name="a"/><br>
Ingrese segundo nmero <input type="number" name="b"/><br>
<input type="submit" value="Enviar" onclick="amigos(a,b);"/>
</form>
<?php
function amigos($a,$b)
{
$aux=0;
$aux1=0;
for($i=0;i<$a;$i++)
{
if($a%$i==0)
{
$aux=$aux+$i;
}
}
for($j=0;$j<$b;$j++)
{
if($b%$j==0)
{
$aux1=$aux1+$j;
}
}
if($a==$aux1 && $b==$aux)
{
echo"Los dos numeros son amigos";
}
else
{
echo"Los dos numeros no son amigos";
}
}
?>
</body>
</html>
Did this file decode correctly?
Original Code
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>primer</title>
</head>
<h2>Ejercicio 1 </h2>
<body>
<form action="Procesa1.php" method="get">
Ingrese primer nmero <input type="number" name="a"/><br>
Ingrese segundo nmero <input type="number" name="b"/><br>
<input type="submit" value="Enviar" onclick="amigos(a,b);"/>
</form>
<?php
function amigos($a,$b)
{
$aux=0;
$aux1=0;
for($i=0;i<$a;$i++)
{
if($a%$i==0)
{
$aux=$aux+$i;
}
}
for($j=0;$j<$b;$j++)
{
if($b%$j==0)
{
$aux1=$aux1+$j;
}
}
if($a==$aux1 && $b==$aux)
{
echo"Los dos numeros son amigos";
}
else
{
echo"Los dos numeros no son amigos";
}
}
?>
</body>
</html>
Function Calls
None |
Stats
MD5 | 6765b87b8eb7e68e16df78894bd383f2 |
Eval Count | 0 |
Decode Time | 179 ms |