Guest User

Untitled

a guest
Jan 21st, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int i,j,k,l;
  6.     scanf("%d",&i);
  7.     for(j=i*2-1,k=i;j;j--,k--)
  8.     {
  9.         for(l=i;l+1;l--)
  10.         {
  11.             printf("%c", l?(l<=(k>0?(i-k+1):(i+k-1))?'o':' '):'\n');
  12.         }
  13.     }
  14.     return 0;
  15. }
Add Comment
Please, Sign In to add comment