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
In a byte, what is the maximum decimal number that you can accommodate?
How can I find the modification date of a file?
How can I manipulate individual bits?
What are global variables and how do you declare them?
Are the variables argc and argv are always local to main?
if p is a string contained in a string?
I heard that you have to include stdio.h before calling printf. Why?
What are directives in c?
What is volatile keyword in c?
Why malloc is faster than calloc?
How do you list files in a directory?
What is oops c?
What is indirection?
simple program of graphics and their output display
What is the difference between int main and void main?