This Program prints pattern Using C language.


SUBMITTED BY: Nrupeshsinh

DATE: June 26, 2016, 4:04 a.m.

FORMAT: C

SIZE: 229 Bytes

HITS: 297

  1. # include<stdio.h>
  2. # include<conio.h>
  3. void main()
  4. {
  5. int i,j;
  6. clrscr();
  7. for(i=1;i<=5;i++)
  8. {
  9. for(j=5;j>=i;j--)
  10. {
  11. if(i<=3)
  12. printf("%d",i);
  13. else
  14. printf("%d",6-ci);
  15. }
  16. printf("\n");
  17. }
  18. getch();
  19. }

comments powered by Disqus