Learn programming language HTML CSS,PHP and JavaScript Program
Showing posts with label
php program to print number increasing pyramid
.
Show all posts
Showing posts with label
php program to print number increasing pyramid
.
Show all posts
Saturday, June 1, 2024
php program to print number increasing pyramid
php program to print number increasing pyramid
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 :-
PHP program to print Alphabet Pattern K
PHP Program to print Alphabet Pattern R
reverse right half pyramid in php
left pascal star pattern in php
inverted pyramid star pattern in php
print half diamond pattern
Older Posts
Home
Subscribe to:
Posts (Atom)