Advertisement
Shailrshah

Pattern

Apr 18th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int i,j;
  5.     for (i=0;i<5;i++)
  6.     {
  7.             for(j=0;j<=i;j++)
  8.             printf("*");
  9.         printf("\n");
  10.     }
  11.     return 0;
  12. }
  13. //Output
  14. //*
  15. //**
  16. //***
  17. //****
  18. //*****
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement