program for following output using for loop?
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
Answer Posted / jayaraj.s
#include <stdio.h>
main()
{
int a,b,i=1;
for(a=i;a<=5;a++)
{
for(b=a;b<=5;b++)
{
printf("%d",b);
}
printf("\n");
i++;
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is main an identifier in c?
Which built-in library function can be used to match a patter from the string?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Do pointers take up memory?
What does *p++ do? What does it point to?
find the sum of two matrices and WAP for it.
What is main function in c?
What is quick sort in c?
#include
What is difference between main and void main?
Write a program for Overriding.
What math functions are available for integers? For floating point?
Can we add pointers together?
What is c variable?
write a proram to reverse the string using switch case?