how can i get the output
54321
4321
321
21
1
in c programming........???? pls help......
Answer Posted / jayaraj.s
#include<stdio.h>
main()
{
int a,b;
for(a=5;a!=0;a--)
{
for(b=a;b!=0;b--)
{
printf("%d",b);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 87 Yes | 16 No |
Post New Answer View All Answers
Can we use any name in place of argv and argc as command line arguments?
Why is it important to memset a variable, immediately after allocating memory to it ?
How can I make sure that my program is the only one accessing a file?
What is a good data structure to use for storing lines of text?
What is getch?
What is the meaning of typedef struct in c?
How do you construct an increment statement or decrement statement in C?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What is a spanning Tree?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Is printf a keyword?
What is union in c?
Is using exit() the same as using return?
What is structure in c definition?
while initialization of array why we use a[][2] why not a[2][]...?