Reading strings from the keyboard, DOT NET Programming

Reading strings from the keyboard  

using System;
class Prog3_1
{    
  public static void Main()
  {
   Console.Write ("Enter Your First Name : "); // Displaying to write first name
   string name1 = Console.ReadLine (); // Saving first name in name1
   Console.Write ("Enter Your Last Name : "); // Displaying to write last name
   string name2 = Console.ReadLine (); // Saving first name in name2
   Console.WriteLine ("Hello Mr." + name1 +" " + name2); // Displaying both first & last names
   Console.ReadLine (); // Since to stop the console for displaying last line, we use this to accept a
keystroke frm user. (Similar to getch() in C)
  }
}

Posted Date: 2/11/2013 2:55:14 AM | Location : United States







Related Discussions:- Reading strings from the keyboard, Assignment Help, Ask Question on Reading strings from the keyboard, Get Answer, Expert's Help, Reading strings from the keyboard Discussions

Write discussion on Reading strings from the keyboard
Your posts are moderated
Related Questions
You can post back to any of the page and pages in other application, too. But if you are posting pages to other application, the PreviousPage property will return null. This is an

Project Description: I have a basic C# control interface that I want to be accessed remotely. Possible implementation using wrappers. Skills required are C# Programming, Webs

How can we use Culture Auto in project? We will make a very simple login screen which we will try to use for English as well as the Greek. The login screen will display Engl

What is CTS and CLS? => CLS stands for common language specification where as CTS stands for common type system. => CLS : cls is a standard for .net . cls is small set of sp

upload files using file upload control to google drive

What are the four workflow principles? According to Microsoft, there are four main principles that define the behavior and working of workflows. Developers can use these princi

What is the use of the Connection object? The Connection object is used to connect your application to a specific data source by giving the needed authentication information in

Question: (a) One problem encountered when designing web applications is that HTTP is a "stateless" protocol. Explain two general approaches to solve the statelessness problem

Project Description: We are seeking someone who can write a program in C# or C++. The idea is to prepare the program using a Cross Platform environment like Mono or Qt which

Project Description: I am seeking a serious and motivated software developer that can create for me software like scanspeeder with all the functions as it has. Only thing that I