program for following output using for loop?
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
Answer Posted / atul shukla
#include<stdio.h>
void main()
{
int i,j;
for (i=1;i<=5;i++)
{
for(j=i;j<=5;j++)
printf("%d ",j);
printf("\n");
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Is flag a keyword in c?
Explain the difference between call by value and call by reference in c language?
Is void a keyword in c?
how to find binary of number?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What is modeling?
Why C language is a procedural language?
What is the collection of communication lines and routers called?
How can I automatically locate a programs configuration files in the same directory as the executable?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
When should volatile modifier be used?
What is a void pointer? When is a void pointer used?
What is the meaning of typedef struct in c?