1. Course
  2. Geometry A
  3. Draw a square

Draw a square


Last updated: 8/22/2020 Difficulty: Easy

Write a program in C# that asks for a number (x) and a width to show a square of that width.

Use the number to paint the square.

Input

1
5

Output

11111
11111
11111
11111
11111

Solution

Geometry A

1 / 6

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.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising