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 c programming structure?
Can a pointer be volatile in c?
Why is extern used in c?
What is a volatile keyword in c?
What is linear search?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What is union and structure?
Is main is user defined function?
Why are all header files not declared in every c program?
What is c method?
What is use of pointer?
The __________ attribute is used to announce variables based on definitions of columns in a table?
how to construct a simulator keeping the logical boolean gates in c
What are the modifiers available in c programming language?