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 does the c preprocessor do?
How does normalization of huge pointer works?
what is the significance of static storage class specifier?
What are the benefits of organizational structure?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is file in c language?
How can you find out how much memory is available?
Write a program to implement queue.
Differentiate between a for loop and a while loop? What are it uses?
What are the uses of null pointers?
How do we declare variables in c?
What is the use of volatile?
What does the file stdio.h contain?
Why doesnt that code work?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler