how can i get the output
54321
4321
321
21
1
in c programming........???? pls help......
Answer Posted / nagulmeera
#include<stdio.h>
#include<conio.h>
main()
{
for(int i=5;i<0;i--)
{
for(j=i;j!=0;j--)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 8 No |
Post New Answer View All Answers
What is difference between && and & in c?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What does stand for?
What is the best way to store flag values in a program?
Can you write a programmer for FACTORIAL using recursion?
There seem to be a few missing operators ..
How can I read a binary data file properly?
What is switch in c?
Why is c called "mother" language?
In C, What is the #line used for?
What is the difference between malloc calloc and realloc in c?
Give the rules for variable declaration?
What is self-referential structure in c programming?
Why doesnt long int work?
What is keyword with example?