Answer to Question #15858 in C# for sidneybarros

Question #15858
// ask the user to enter how many years they had

// ask the user to enter the hobbies or interest they have
// Display how many years they had

// Display the hobbies or interest they have


// need to be put in so the display will remain until you hit the enter key
1
Expert's answer
2012-10-04T08:22:52-0400
using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;




namespace ConsoleApplication

{

class Program

{

static void Main(string[] args)

{

Console.Write("How old are you?
>");

string age = Console.ReadLine();

Console.Write("What hobbies or interest you have?
>");

string hobbie = Console.ReadLine();

Console.WriteLine("Age: " + age);

Console.WriteLine("Hobbie: " + hobbie);

Console.ReadKey();

}

}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS