Monday, February 3, 2014

Php program using loops

<html>
<body>

<?php
$i=1;
while($i<=5)
  {
  echo "The number is " . $i . "<br />";
  $i++;
  }
?>

</body>
</html>



OUTPUT:
The number is 1
The number is 2
The number is 3
The number is 4
The number is 5


No comments:

Post a Comment