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
What is a 'null pointer assignment' error?
Are there constructors in c?
What are linked lists in c?
What is the difference between far and near ?
How to Throw some light on the splay trees?
Explain what is the benefit of using an enum rather than a #define constant?
When is the “void” keyword used in a function?
What is the argument of a function in c?
Define circular linked list.
i got 75% in all semester am i eligible for your company
Write the test cases for checking a variable having value in range -10.0 to +10.0?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Differentiate between a structure and a union.
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..