Tell me a C program to display the following Output?
1 1 1 1 1
2 2 2 2
3 3 3
4 4
5
Answer Posted / deepti
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=5;j>=i;j--)
{
printf("%d",i);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Why do we use namespace feature?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Give me the code of in-order recursive and non-recursive.
How can I manipulate individual bits?
what is the diffrenet bettwen HTTP and internet protocol
Why is python slower than c?
Can we assign integer value to char in c?
What are the 4 types of unions?
What is scope rule in c?
What are the different types of errors?
What is conio h in c?
What are the parts of c program?
What does the error message "DGROUP exceeds 64K" mean?
What is the default value of local and global variables in c?