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 / sreesen@ymail.com
#include<stdio.h>
void main()
{
int i,j,k=5;
for(i=1;i<=5;i++)
{
for(j=k;j<=0;j--)
{
printf("%d",i);
}
printf(""\n);
k--;
}
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is operator promotion?
What is the difference between strcpy() and memcpy() function in c programming?
praagnovation
What are the preprocessor categories?
What oops means?
What are shell structures used for?
What is the scope of an external variable in c?
What is string function in c?
How can I pad a string to a known length?
What are register variables in c?
Why do we use namespace feature?
Write the control statements in C language
Explain 'far' and 'near' pointers in c.
Place the #include statement must be written in the program?
What is the use of in c?