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
What is pragma c?
Explain zero based addressing.
Explain low-order bytes.
What is #line used for?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What are the types of pointers in c?
Explain what is page thrashing?
Compare and contrast compilers from interpreters.
What is a MAC Address?
What is chain pointer in c?
What is static identifier?
What is a pragma?
Write a program on swapping (100, 50)
What math functions are available for integers? For floating point?
can we change the default calling convention in c if yes than how.........?