how can i get the output
54321
4321
321
21
1
in c programming........???? pls help......
Answer Posted / rishabh upadhyay
#include<stdio.h>
void main(){
int i,j=5,temp=0;
for (i=1;i<=5;i++)
{
for (j=5-temp;j>=1;j--)
{
printf("%d",j);
}
printf("
");
temp=temp+1;
}
}
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Is c is a low level language?
What are pointers?
Is flag a keyword in c?
What are the two types of structure?
Why main is used in c?
What is void main () in c?
How can I determine whether a machines byte order is big-endian or little-endian?
What is the difference between exit() and _exit() function?
What is output redirection?
Explain what is wrong with this program statement?
How does pointer work in c?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is difference between structure and union?
What is advantage of pointer in c?
Why header file is used in c?