Advertisement
Guest User

Untitled

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