how can i get the output
54321
4321
321
21
1
in c programming........???? pls help......
Answer Posted / narasimharao
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,n;
clrscr();
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=i;j>=1;j--)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 29 Yes | 12 No |
Post New Answer View All Answers
What is the purpose of macro in C language?
What is I ++ in c programming?
What is n in c?
What is string function in c?
What does return 1 means in c?
Can a file other than a .h file be included with #include?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What do you mean by scope of a variable in c?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What functions are in conio h?
Explain how to reverse singly link list.
Explain what is the stack?
What does *p++ do?
Do you know pointer in c?
What is scanf_s in c?