ALPHABET

32


<html>
<head>
 <title>Different Alphabet</title>
</head>
<body>
 <center>
 <h1>DIFFERENT ALPHABET</h1>
 <form action="1Breal.php" method="get">
 1. Pattern 1<br>
 2. Pattern 2<br>
 3. Pattern 3<br>
 Enter Your Choice: <input type="text" name="choice"/><br>
 <input type="submit" name="visit" value="Submit"/><br>
 </form>
 <?php
 $n = $_GET["choice"];
 switch ($n) {
 case 1:
 echo "<b><i>Letter A</i></b><br>";
 $alpha = range('A', 'E');
 for ($i = 0; $i < 5; $i++) {
 for ($j = 4; $j > $i; $j--) {
 echo $alpha[$i];
 }
 echo "<br>";
 }
 break;
 case 2:
 echo "<b><i>Letter B</i></b><br>";
 $alpha = range('A', 'E');
 for ($i = 0; $i < 5; $i++) {
 for ($j = 0; $j <= $i; $j++) {
 echo $alpha[$i];
 }
 echo "<br>";
 }
 break;
 case 3:
 echo "<b><i>Letter C</i></b><br>";
 $alpha = range('A', 'E');
 for ($i = 0; $i < 5; $i++) {
 for ($j = 0; $j <= $i; $j++) {
 echo $alpha[$j];
 }
 echo "<br>";
 }
 break;
 default:
 echo "done";
 }
 ?>
 </center>
</body>
</html>