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

welcome!

Output

--------------
W E L C O M E !
--------------

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