Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
This Program Print Patterns Using C Language.
SUBMITTED BY:
Nrupeshsinh
DATE:
June 26, 2016, 3:55 a.m.
FORMAT:
Text only
SIZE:
253 Bytes
Raw
Download
Tweet
HITS:
410
Go to comments
Report
# include<stdio.h>
# include<conio.h>
void main()
{
int i,j,k;
k=1;
clrscr();
for(i=1;i<=5;i++)
{
for(j=5;j>=1;j--)
{
if(j>i)
printf(" ");
else
printf("%3d",k++);
}
printf("\n");
}
getch();
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus