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 ? | 28 Yes | 12 No |
Post New Answer View All Answers
How can I dynamically allocate arrays?
Where are c variables stored in memory?
what will be maximum number of comparisons when number of elements are given?
How many types of operators are there in c?
What is the modulus operator?
What is the use of structure padding in c?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
What is meant by preprocessor in c?
What is function in c with example?
What is signed and unsigned?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Difference between linking and loading?
Can main () be called recursively?
How is pointer initialized in c?
What is the process to create increment and decrement stamen in c?