Code With NK
30 January 2022
Print Pattern
#include
<stdio.h>
int
main
(){
int
n
=
5
;
for
(
int
i
=
1
;
i
<=
n
;
i
++){
for
(
int
j
=
1
;
j
<=(
2
*
i
-
1
);
j
++){
printf
(
"*"
);
}
printf
(
"
\n
"
);
}
return
0
;
}
ANS--->
*
*** ***** ******* *********
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment