1. Course
  2. Geometry B
  3. Draw a hollow square

Draw a hollow square


Last updated: 8/23/2020 Difficulty: Intermediate

Write a program in C# that asks for a symbol and a width that you will use to draw the hollow square of that width and height.

Use the symbol to draw the hollow square, the height will be the same as the width.

Input

1
5

Output

11111
1   1
1   1
1   1
11111

Solution

Geometry B

1 / 4

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Advertising