<body>
<?php
$n = $_POST['n'];
if ($n%2==0)
{echo "e";}
else
{echo "o";}
?>
<form method="post" action="">
<input type="text" name="n" >
<input type="submit" name="submit">
</form>
</body>
<body>
<?php
{$n= $_POST['n'];
$r =1;
for($i=1; $i<=$n; $i++);
{
$r=$i*$n;
}
echo $r;
}
?>
<form method="post" action="">
<input type="text" name="n">
<input type="submit" name="submit">
</body>
No comments:
Post a Comment