Advertisement
Guest User

pyramid-mkII

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