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
Can you think of a logic behind the game minesweeper.
Who invented bcpl language?
Where is volatile variable stored?
What does %c do in c?
Explain indirection?
What is the heap in c?
Which are low level languages?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is zero based addressing?
What are dangling pointers? How are dangling pointers different from memory leaks?
what are the 10 different models of writing an addition program in C language?
What is define directive?
Whats s or c mean?
What is static identifier?
How can I call fortran?