how can i get the output
54321
4321
321
21
1
in c programming........???? pls help......
Answer Posted / nagulmeera
#include<stdio.h>
#include<conio.h>
main()
{
for(int i=5;i<0;i--)
{
for(j=i;j!=0;j--)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 8 No |
Post New Answer View All Answers
What is structure padding and packing in c?
What is identifier in c?
What is the difference between ++a and a++?
What is the use of in c?
Why we not create function inside function.
Why we write conio h in c?
How does #define work?
What is an endless loop?
What is union in c?
Is it better to use a macro or a function?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
Give me the code of in-order recursive and non-recursive.
Why functions are used in c?
What is c method?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?