Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int i,j,n,t,k;
- scanf("%d",&t);
- while(t--){
- scanf("%d",&n);
- if(n==1)
- printf(" || \n");
- else if(n==2)
- printf(" || \n | || | \n");
- else{
- printf(" || \n | || | \n| | || | |\n");
- for(k=0;k<n-3;k++){
- printf("| | || | |\n");
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment