Example :-
<?php
$k=1;
for($i=0;$i<4; $i++)
{
for($j=0;$j<=$i;$j++)
{
echo $k. "";
$k++;
}
echo "<br>";
}
?>
php program to print number increasing pyramid
Output:-
Related Post :-
Web Designing Theory is a web development learning blog where you can learn HTML, CSS, JavaScript, and modern web design tutorials step by step. Improve your coding skills with easy examples, projects, and beginner-friendly guides for frontend development.
Web Designing Theory – A Journey from Struggle to Web Development Success Sometimes students feel confused while learning coding and web d...
No comments:
Post a Comment