Programming and IT Research Center (ج البرمجة وتكنولوجيا المعلومات مركز الأبحاث)
widgets
Tuesday, July 16, 2013
Number Pattern-01
C programming Pattern-01
Pattern-01 source code in C Programming
#include<stdio.h>
int main()
{
int i,j,k=1;
for(i=1;i<=5;i+=2)
{
for(j=5;j>=1;j--)
{
if(j>i)
printf(" ");
else
printf("%d ",k++);
}
printf("\n");
}
}
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)