user input

  1. Elkish

    Resolved Having an input problem

    I'm having a small bit of trouble with this line of code: /*the first three lines had info abt the website*/ using System; public class HelloWorld { public static void Main(string[] args) { string name = Console.ReadLine(); if (name = "John"); {Console.WriteLine("Hello")...
  2. S

    Question Unhandled exception string problem user input

    Hello all: I'm new to coding and this forum, using c# visual studio 2012. I am trying to get this code to read the user input and read it on a separate line. I get an un-handled exception, not sure why. Thank You using System; using System.Collections.Generic; using System.Linq; using...
Back
Top Bottom