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
Write a simple code fragment that will check if a number is positive or negative.
What is a stream water?
What is double pointer?
Can you tell me how to check whether a linked list is circular?
Explain threaded binary trees?
write a c program for swapping two strings using pointer
What is the purpose of sprintf?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Why structure is used in c?
Where register variables are stored in c?
Who developed c language and when?
What are the advantages of using linked list for tree construction?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Is c still used?
Explain what is the difference between functions getch() and getche()?