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
How can we add relation's between table in a DataSet? Dim objRelation As DataRelation  objRelation=New DataRelation("CustomerAddresses",objDataSet.Tables("Customer").Colu

How can you identify whether or not any changes are made to the DataSet object as it was last loaded? The DataSet object provides the following two methods to track down the ch

This assignment aims to give you a deeper understanding of a 3-tiers integrated application, which groups together several topics taught in this course. This assignment asks yo

I am seeking someone (person or company) who already has been developing some ASP.NET MVC 4 application with the subsequent requirements (so there is no need to spend extra time to

Project Description: I am having a table available in excel format and features the subsequent: - It has about 170000 rows - Some text is longer than 255 in length. - S

. write a program for displaying the total no of characters, words and sentences in a given file

I am looking individuals who have industry experience working on Microsoft Technology and Jquery ( MVC 4.5 ), who will take live online session and give training through Team Viewe

What is a static constructor? Static constructors are introduced with C# to initialize the static data of a class. CLR calls the static constructor before the initial instance

What is code access security (CAS)? Code access security (CAS) is part of the .NET security model that stops unauthorized access of resources and operations, and restricts the

How can we create custom controls in ASP.NET? The User controls are created using .ASCX in ASP.NET. After that .ASCX file is created you need two things in order to that the AS