Tetris

easy
The building blocks of Tetris are called Tetromions. While there are five basic tetrominos, we are only interested in "T-tetromino", the one that is shaped like a "T". This program will take two inputs from the user i.e. scale and orientation. This program prints out the T-tetromino. The orientation up indicates that the T-tetromino is printed with the bar up (like the regular letter "T") and down indicates that the T-tetromino is printed with the bar down (like an upside-down letter "T"). scale indicates the size of the printout: a value of 1 means that the T-tetromino is printed with 'X'-characters on a 3 x 2 grid:
XXX
 X 
Larger values mean that the printout is larger by a factor of 2, 3, and so on
In the input the first value is the orientation 1 for up and 2 for down. The second value represents the scale.
Example: 
Input:
2 
4
Output:
XXXX    
XXXX    
XXXX    
XXXX    
XXXXXXXXXXXX
XXXXXXXXXXXX
XXXXXXXXXXXX
XXXXXXXXXXXX
Input:
1 
3
Output:
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX
XXX   
XXX   
XXX

Input Format

Output Format

Constraints

none

Example

Input
+-----+
|     |
|  X  |
|     |
+-----+
Output
|||||||||
|||||||||
|||||||||
   |||
   |||
   |||		
Previous
Box Pattern
Next
Remove Duplicates From Sorted Linkedlist

Related Questions