I'm trying to make my program check if input is a string (Only alphabetical characters) but it displ
First of all your code hardly makes sense at all, and is difficult to read with all the extra whitespace. First, I don't know what you are trying to achieve here:
If you uncomment the WriteLine it will always print "Invalid Input". Then, over here you aren't doing anything to show the invalid input. All you're doing is printing a line:
BTW, when you write untidy code like this you are going to get bitten from not using braces in your
Then over here:
you're using
If you uncomment the WriteLine it will always print "Invalid Input". Then, over here you aren't doing anything to show the invalid input. All you're doing is printing a line:
BTW, when you write untidy code like this you are going to get bitten from not using braces in your
if statementsThen over here:
you're using
Console.Write instead of Console.WriteLine so nothing will get output