C program to print the number in pattern
Answers
Answered by
0
Answer:
program of printing the numbers in pattern.
Explanation:
12345
1234
123
12
1
Program:
#include <stdio.h>
#include <conio.h>
int main()
{
int i, j;
for(i=5;i>=1;i--)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
return 0;
}
Similar questions