how can i get the output
54321
4321
321
21
1
in c programming........???? pls help......
Answer Posted / aftab rai
#include<stdio.h>
#include<conio.h>
main()
{
int i,j,n;
printf("enter numbers of lines");
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{printf("%d",i+1+j);}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 10 No |
Post New Answer View All Answers
Do you know the difference between exit() and _exit() function in c?
What is an expression?
Explain what are run-time errors?
Write a program to use switch statement.
What is a lookup table in c?
How can I write a function analogous to scanf?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What are actual arguments?
How can I split up a string into whitespace-separated fields?
List some of the static data structures in C?
What does != Mean in c?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
How can you restore a redirected standard stream?
What is the use of bit field?
How can I list all of the predefined identifiers?