Problem with 2.your first while loop


#1

it is neither showing preview nor submitting the answer. some one check it


#2

@justsumant,
Please provide us with the full code you are using .....


#3

I have the same problem, my code is:

<!DOCTYPE html>
<html>
    <head>
		<title>A loop of your own</title>
        <link type='text/css' rel='stylesheet' href='style.css'/>
	</head>
	<body>
    <?php
	//Add while loop below
        $condition = true;
        $i = 1;
        while ($condition == true) {
            if ($i == 1){
                 echo "<p>$i.st iteration. </p>";   
            }
            elseif ($i == 2){
                 echo "<p>$i.nd iteration. </p>";   
            }
            elseif ($i == 3){
                 echo "<p>$i.rd iteration. </p>";   
            }
            else {
            echo "<p>$i.th iteration. </p>";
            }
            $i++;
            if($i > 10){
                $condition = false;
            }   
        }
        echo "<p>done</p>.";
    ?>
    </body>
</html>

#4

I have the same problem, the preview doesn't load with any code.