1. Course
  2. Functions B
  3. Function to write text with title format

Function to write text with title format


Last updated: 8/23/2020 Difficulty: Intermediate

Create a C# program that implements a function called WriteTitle that writes a text centered on the screen, in capital letters, with additional spaces and with one line above and another below. Look at the output to see the format.

Input

  1. welcome!

Output

  1. --------------
  2. W E L C O M E !
  3. --------------

Solution

Functions B

6 / 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


CookieOwn and third party cookies to improve our services. If you go on surfing, we will consider you accepting its use.