how can i get output the following...
5 4 3 2 1
4 3 2 1
3 2 1
2 1
1
and
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
plz plz...
Answer Posted / abhishek karnani
void main ()
{
int i,k,j;
clrscr();
for (i=0;i<5;i++)
{
for (j=5;j>=i+1;j--)
{
printf ("%d",j);
}
printf("\n");
for (k=0;k<j+1;k++)
{
printf(" ");
}
}
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why can't I perform arithmetic on a void* pointer?
Can we declare function inside main?
What is the advantage of c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What are the 32 keywords in c?
What is main return c?
Explain how can I avoid the abort, retry, fail messages?
What is the full form of getch?
What is the use of bitwise operator?
write a program to create a sparse matrix using dynamic memory allocation.
swap 2 numbers without using third variable?
Why can arithmetic operations not be performed on void pointers?
explain what are actual arguments?
What happens if header file is included twice?