Programming and IT Research Center (ج البرمجة وتكنولوجيا المعلومات مركز الأبحاث)
widgets
Tuesday, July 2, 2013
Pattern in C
Print Pattern in C
Print The following pattern
56789
6789
789
89
9
#include <stdio.h>
int main()
{
int i,j;
for(i=5;i<=9;i++)
{
for(j=i;j<=9;j++)
{
printf("%d",j);
}
printf("\n");
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment