5 44 333 2222 11111
#include <stdio.h>
int main()
{
int i, j;
for(i=5;i>=1;i--)
{
for(j=5;j>=i;j--)
{
printf("%d",i);
}
printf("\n");
}
return 0;
}
Related Links:
- More Number Pattern Programs
- Star Pattern Programs in C
- Alphabet Pattern Programs in C
- Series Programs in C
this code is wrong.
ReplyDeletecode is working fine, check the following link of codepad.org for output.
Deletehttp://codepad.org/HASbQFOy
for(i=1;i<=n;i++)
ReplyDelete{
for(j=1;j<=i;j++)
pf("%d",n);
n--;
pf("\n");
}
Int I,j;
ReplyDeleteFor(i=5;I>=1;i--)
{
For(j=i;j<=5;j++)
{
Printf("%d",I);
}
Printf("\n");
}
Is this code true ??
This code is wrong
ReplyDeleteThe right code is:-
#include
int main()
{
int i,j;
for(i=5;i>=1;i--)
{
for(j=i;j<=5;j++) {
printf("%d",i); }
printf("\n");
}
return 0;
}
#include
ReplyDeletevoid main()
{
int i,j;
for(i=5;i>=1;i--)
{
for(j=i;j<=5;j++ )
{
printf("%d",i);
}
printf("\n");
}
}
This code is right 😈
ReplyDeleteHow to print this pattern ?
ReplyDelete1
1 1
1 2 1
1 2 2 1
7
ReplyDelete6 6
14 14 14
12 12 12 12
21 21 21 21 21
enter code
consotu_wo Zeek Ali https://www.thebarenorth.com/profile/Piaggio-Skipper-150-Service-Manual-NEW/profile
ReplyDeletevalpiraro
riacaQcenbe2002 Kaylee Castro https://wakelet.com/@geowatofu777
ReplyDeleteinarimon