PHP Programing language

Print a odd Number 1 to 100 using while loop
Previous Home Next

<html>
<head>
<title>print odd number</title>
</head>
<body>
<?php
$num = 1;
while ( $num <= 100 ){ 
  print "$num</br>";
  $num += 2;
}
?>
</body>
</html>
output

135791113151719212325272931333537394143454749515

35557596163656769717375777981838587899193959799

Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: