S3P4 - Draw Rectangle

no tags 

given dimensions of a rectangle draw an empty rectangle using * with the given dimensions

Input

Two integers N and M

N is the height and M is the width

N and M are integers and greater than 0

N and M are not exceeding 100 

Output

Rectangle its border is filled with * and empty from inside

Example

Input:
3 4

Output:
****
*  *
****
the output may be not clear but the second line has 4 characters , 2 asterisks at the begin and the end and 2 spaces in
the middle

hide comments
Dicky Djayadi: 2012-07-07 06:53:10

hi would you check my solution please? thanks


Added by:mohamed gamal
Date:2012-01-27
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ASM32-GCC MAWK BC C-CLANG C++ 4.3.2 CPP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH GOSU GRV JS-MONKEY KTLN NIM NODEJS OBJC OBJC-CLANG OCT PICO PROLOG PYPY PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET