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
How can you increase the size of a statically allocated array?
How can I avoid the abort, retry, fail messages?
What's the right way to use errno?
What is a macro?
Explain how can you restore a redirected standard stream?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
using for loop sum 2 number of any 4 digit number in c language
What is indirection? How many levels of pointers can you have?
What is merge sort in c?
Which built-in library function can be used to match a patter from the string?
what type of questions arrive in interview over c programming?
Write the control statements in C language
Difference between strcpy() and memcpy() function?
Which is more efficient, a switch statement or an if else chain?
Do you have any idea how to compare array with pointer in c?