<?php
echo "Please enter your name: ";
$name = trim (fgets (STDIN));
echo "Welcome, $name\n";
if ($name == "Sushil")
echo "You rock!!!\n";
print "I'm now going to count to 10\n";
for ($i=1; $i <=10; $i++)
echo $i . " ";
echo "\n";
?>
extend to the following:
- read three numbers and print the square of each,
- read three numbers, sort them, and print the square of each,
- print the even numbers from 0 to 20, and
- print the current date.
No comments:
Post a Comment