Write A Program To Print this pattern


SUBMITTED BY: Guest

DATE: Oct. 12, 2013, 6:02 a.m.

FORMAT: Text only

SIZE: 283 Bytes

HITS: 1127

  1. *
  2. **
  3. ***
  4. ****
  5. *****
  6. ___________________________________
  7. #include<stdio.h>
  8. #include<conio.h>
  9. main()
  10. {
  11. int i,k
  12. for (i=1;i<6;i++)
  13. {
  14. for (k=1;k<=i;k++)
  15. {
  16. printf("*");
  17. }
  18. printf("\n");
  19. }
  20. getch();
  21. }

comments powered by Disqus