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
What is pass by reference in functions?
What is a nested loop?
Write a C program in Fibonacci series.
What is the use of bit field?
What are the salient features of c languages?
What is the difference between ++a and a++?
What does %c mean in c?
Explain what are preprocessor directives?
What is the difference between null pointer and wild pointer?
What is the default value of local and global variables in c?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Where are the auto variables stored?
What is the need of structure in c?
Why is it important to memset a variable, immediately after allocating memory to it ?
Is it valid to address one element beyond the end of an array?