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 does c in a circle mean?
Why does this code crash?
What is the difference between variable declaration and variable definition in c?
Are there namespaces in c?
What is the difference between printf and scanf in c?
What oops means?
What does typedef struct mean?
What is spaghetti programming?
What is difference between structure and union in c programming?
What are derived data types in c?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
write a program to display all prime numbers
Is array name a pointer?
What is meant by int main ()?
What is atoi and atof in c?