62 477
Assignments Done
98,8%
Successfully Done
In June 2018

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
Expert's answer
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions