Skip to content

Latest commit

 

History

History
33 lines (32 loc) · 622 Bytes

README.md

File metadata and controls

33 lines (32 loc) · 622 Bytes

dot-pattern-design

Print of the String "Welcome". Matrix size must be N X M. ( N is an odd natural number, and M is 3 times N.).
The design should have 'WELCOME' written in the center. The design pattern should only use . character.

Input 1

5
WELCOME

Output 1

N = 5
M = 15
. . . . . . . . . . . . . . . 
. . . . . . . . . . . . . . . 
. . . . W E L C O M E . . . . 
. . . . . . . . . . . . . . . 
. . . . . . . . . . . . . . . 

Input 2

3
WELCOME

Output 2

N = 3
M = 9
. . . . . . . . . 
. W E L C O M E . 
. . . . . . . . .