Skip to content

Commit fb5695c

Browse files
committed
Validate Integer Input in C#
1 parent 29e1e6f commit fb5695c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeProjectOne/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*string? readResult;
1+
string? readResult;
22
bool validEntry = false;
33
Console.WriteLine("Enter a string containing at least three characters:");
44
do
@@ -15,7 +15,7 @@
1515
Console.WriteLine("Your input is invalid, please try again.");
1616
}
1717
}
18-
} while (validEntry == false);*/
18+
} while (validEntry == false);
1919

2020
int userInput;
2121
bool isValidNumber = false;

0 commit comments

Comments
 (0)