12345
1234
123
12
1
Answers were Sorted based on User's Feedback
Answer / malik
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=5;i>=0;i--)
{
for(j=1;j<=i;j++)
{
printf("%d", j);
}
printf("\n");
}
getch();
}
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / prachi
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d", i);
}
printf("\n");
}
getch();
}
Is This Answer Correct ? | 2 Yes | 3 No |
what is the difference between #include<stdio.h> and #include"stdio.h" ?
how can write all 1to 100 prime numbers using for loop,if and break ?
What is data types?
write a program to search for an element in a given array. If the array was found then display its position otherwise display appropriate message in c language
Is c easier than java?
How do I round numbers?
Is c a great language, or what?
Explain what is the difference between the expression '++a' and 'a++'?
what is the full form of c language
please give me some tips for the placement in the TCS.
What is the use of structure padding in c?
How would you print out the data in a binary tree, level by level, starting at the top?