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
Explain how does flowchart help in writing a program?
What does it mean when a pointer is used in an if statement?
What are the 5 types of organizational structures?
What do header files do?
How can I handle floating-point exceptions gracefully?
How do you initialize pointer variables?
What are pointers?
Explain the difference between #include "..." And #include <...> In c?
What is const and volatile in c?
What do mean by network ?
What are all different types of pointers in c?
Explain why c is faster than c++?
What is sizeof int?
What are the types of functions in c?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?