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
Is c is a high level language?
Give basis knowledge of web designing ...
What extern c means?
What is the difference between āgā and āgā in C?
What is the stack in c?
When a c file is executed there are many files that are automatically opened what are they files?
What is meant by preprocessor in c?
What are the types of i/o functions?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
How arrays can be passed to a user defined function
What is the use of getchar() function?
Define Spanning-Tree Protocol (STP)
Sir i need notes for structure,functions,pointers in c language can you help me please
What is the use of pointers in C?
Write a program to print factorial of given number without using recursion?