C# - Reading and Displaying Strings
Here is the C# Source Code on how to read a string and display the string on screen.
Source Code
using System;
using System.Collections.Generic;
using System.Text;
namespace ReadDisplayString
{
class ReadAndDisplayString
{
static void Main(string[] args)
{
System.Console.WriteLine("Enter a string to display: ");
string input = System.Console.ReadLine();
System.Console.Write("Your input is: {0}\n", input);
}
}
}
Output
Enter a String to display: softwareandfinance.com
Your input is: softwareandfinance.com
|