PHP Programing language

adplus-dvertising
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