This Program Prints Patterns Using C Language.


SUBMITTED BY: Nrupeshsinh

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

FORMAT: C

SIZE: 244 Bytes

HITS: 365

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

comments powered by Disqus