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
Explain what is the difference between the expression '++a' and 'a++'?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
Is return a keyword in c?
What is malloc and calloc?
Why does this code crash?
What is the process to create increment and decrement stamen in c?
What are c preprocessors?
Is the exit() function same as the return statement? Explain.
What are the advantages of using new operator as compared to the function malloc ()?
What are the scope of static variables?
Explain how can you tell whether two strings are the same?
Write a Program to find whether the given number or string is palindrome.
What is the significance of scope resolution operator?
Are global variables static in c?
What is #define?