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
What happens if header file is included twice?
Do you have any idea how to compare array with pointer in c?
What is external variable in c?
What will be your course of action for a push operation?
What is extern keyword in c?
Explain what is a 'locale'?
Why is struct padding needed?
What should malloc() do?
What is stack in c?
What is the use of #define preprocessor in c?
What is a string?
What are local static variables?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Explain how can you determine the size of an allocated portion of memory?
What does the && operator do in a program code?