PHP Compiler
<!DOCTYPE html> <html> <body> <?php $start = 10; $end = 25; echo "Even numbers between $start and $end: <br>"; while($start <= $end) { if($start % 2 == 0) echo "$start "; $start++; } ?> </body> </html>
OUTPUT
Even numbers between 10 and 25: 10 12 14 16 18 20 22 24
×
Save as
Private
Tag
AJAX
Canvas
CSS
Google Charts
HTML
Javascript
jQuery
JSON
SASS
SVG
Description
Save