+ 1

Write a program to a given pattern in c language

54321 *5432 **543 ***54 ****5

30th Mar 2021, 5:37 PM
Vivek_9
Vivek_9 - avatar
6 Antworten
+ 2
Vivek Show your attempts.
30th Mar 2021, 5:50 PM
A͢J
A͢J - avatar
+ 2
Thq
30th Mar 2021, 6:12 PM
Vivek_9
Vivek_9 - avatar
+ 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"); } }
30th Mar 2021, 5:56 PM
Vivek_9
Vivek_9 - avatar
0
I am given star for reference purposes
30th Mar 2021, 5:57 PM
Vivek_9
Vivek_9 - avatar
0
Now tell me
30th Mar 2021, 6:01 PM
Vivek_9
Vivek_9 - avatar