How to make these series in c programming?
I would like to screen-print following set in c
1234
123
12
1
you incorporate the use of following loop
for(i=n; i>=1; i–)
for(j=1; j<=i; j++)
printf(“%d”, j);
printf(“\n”);
include
#include
emptiness main()
int my partner and i, j;
for(i=4; i>0; i–)
for(j=1; j<=i; j++)
printf(“%d”, j);
printf(“\n”);
getch();
try this kind of
regarding (int post = FIVE; i > 0; i–)
regarding (int j = ONE PARTICULAR; j <= my partner and i; j++)
printf(“%d”, j); // you may also use cout<< j;
printf(“\n”);
#include
int set = 1234;
emptiness main()
…..while(series >= 1)
……….printf(“%d\n”, series);
……….set /= TWELVE;
…..
This promotion works.
Leave a Reply
You must be logged in to post a comment.