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
I have seen function declarations that look like this
Write a program on swapping (100, 50)
Is Exception handling possible in c language?
What is the purpose of sprintf?
What is difference between array and structure in c?
What is quick sort in c?
What do header files do?
write a program for the normal snake games find in most of the mobiles.
Which is an example of a structural homology?
Why do we use c for the speed of light?
Explain what is wrong with this program statement? Void = 10;
What is #define used for in c?
What are high level languages like C and FORTRAN also known as?
How many parameters should a function have?
What are the three constants used in c?