×
Log in
Twitter
Gmail
Facebook
.NET Fiddle
and
.NET Academy
shared account
Remember me
Log in
Sign up
or
Reset password
Search Tutorials
Log in
Sign up
About
Twitter
.NET Fiddle
Support
Contact Us
Using the Console
Exercise: Using Console.ReadLine
< Previous
Next >
Goal
Use Console.ReadLine and assign the result to the variable called "name".
using System; public class Program { public static void Main() { Console.WriteLine("Hi, what is your name?"); string name = ""; Console.WriteLine("Hi, " + name); } }
Reset
Verify
Page 8 of 12
< Previous
Next >
Loading packages and dependencies