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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / devi
#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 ? | 1 Yes | 0 No |
Answer / 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 |
Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.
how many times of error occur in C
what is the difference between malloc() and calloc() function?
How do I get a null pointer in my programs?
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
What is the purpose of sprintf?
What is ambagious result in C? explain with an example.
how to make program without <> in library.
matrix multiplication fails introspect the causes for its failure and write down the possible reasons for its failurein c language.
can v write main() { main(); } Is it true?
Hai what is the different types of versions and their differences
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?