1 12 123 1234 12345
#include <stdio.h>
int main()
{
int i, j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
return 0;
}
Related Links:
- More Number Pattern Programs
- Star Pattern Programs in C
- Alphabet Pattern Programs in C
- Series Programs in C
want mirror image of that pattern
ReplyDeleteplease write code for this using while loop
ReplyDeleteno i will not write
Delete#include
Deleteint main()
{
int i=1;
while(i<=5)
{
int j=1;
while(j<=i)
{
printf("%d", j);
j++;
}
i++;
printf("\n");
}
return 0;
}
we want these coding by while and do while
ReplyDeletewhile :
Deleterows = 5
i = 0
while i <= rows:
j = 1
while j <= i:
print(j, end=' ')
j += 1
print()
i += 1
do-while:
rows = 5
i = 0
while True:
j = 1
while j <= i:
print(j, end=' ')
j += 1
print()
i += 1
if i > rows:
break
if it is in pyramid shape
ReplyDeletethen the code will be...???
i really want someone explain :( i dont want just to copy and be proud of it, i have big conscience at my back
ReplyDeletehelpful........
ReplyDelete#include
ReplyDeleteint main()
{
int n;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
for(int j=1;j<=i;j++)
{
printf("%d ",j);
}
printf("\n");
}
return 0;
}
#include
ReplyDeleteint main()
{
int i=1;
while(i<=5)
{
int j=1;
while(j<=i)
{
printf("%d", j);
j++;
}
i++;
printf("\n");
}
return 0;
}
OconfjecZgio-na_Mobile Fabian Byrd https://marketplace.visualstudio.com/items?itemName=erexim-do.Descargar-On-Board-gratuita-2021
ReplyDeletehayralala
Wantaconf_toJackson Antoine Mosley click
ReplyDeletedownload
click here
click
mbytpariles
Ocuslicie_pa_Mobile Julio Toliver Express VPN
ReplyDeleteEset NOD 32
https://fatfiles.net/abbyy-finereader-full-repack-latest-version/
rerarate