1. Course
  2. Introduction to C#
  3. Store user input

Store user input


Last updated: 8/22/2020 Difficulty: Easy

Create a program in C# that asks the user in the first line What is your name? and save the name in the variable x.

The program must respond on the second line with Nice to meet you, x.

Input

What is your name? x

Output

Nice to meet you, x

Solution

Introduction to C#

8 / 9

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