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 ? | 4 Yes | 8 No |
Post New Answer View All Answers
What is a method in c?
Why do we use namespace feature?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Why do we use int main?
write a program to display all prime numbers
How can a program be made to print the line number where an error occurs?
What is a macro in c preprocessor?
What is the benefit of using const for declaring constants?
How can I prevent another program from modifying part of a file that I am modifying?
What is a structural principle?
What is a volatile keyword in c?
What is n in c?
What is non linear data structure in c?
What is the use of bit field?
what will be the output for the following main() { printf("hi" "hello"); }