+ 1
Write a program to a given pattern in c language
54321 *5432 **543 ***54 ****5
6 Réponses
+ 2
Vivek
Show your attempts.
+ 2
Thq
+ 1
#include <stdio.h>
void main()
{
int a, i, j;
for(a = 5; a > 0; a--)
{
for(i = 1; i < a; i++)
{
printf(" ");
}
for(j = 5; j >= a; j--)
{
printf("%d", j);
}
printf("\n");
}
}
0
I am given star for reference purposes
0
Now tell me