juyana

F

Dec 9th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int i,j,n,t,k;
  5.     scanf("%d",&t);
  6.     while(t--){
  7.     scanf("%d",&n);
  8.     if(n==1)
  9.         printf("    ||    \n");
  10.     else if(n==2)
  11.        printf("    ||    \n  | || |  \n");
  12.        else{
  13.            printf("    ||    \n  | || |  \n| | || | |\n");
  14.     for(k=0;k<n-3;k++){
  15.  
  16.         printf("| | || | |\n");
  17.     }
  18.     }
  19.  
  20.     }
  21.     return 0;
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment