...

/

A Simple Interactive Program

A Simple Interactive Program

This lesson will discuss using command line to pass input to a program in C#

We'll cover the following...

Accepting Command-Line Input

In the example, in the previous lesson you simply ran the program and it produced an output. However, many programs are written to accept command-line input.

Down below is an example of a more interactive sample program which takes input using the command line.

In this example, you’ll be required to enter your name which will then be displayed when you run the code. ...