0
How To use Input As Value in C# in If Condition
I Want To Say that if I Want User Input As Value How to Describe it In c# Like Age=Input if Age=>18 Type Welcome How to Type this As A Code In C#
3 Answers
+ 5
Did you mean something like this :
https://code.sololearn.com/cOX00ZX4gm2K/?ref=app
+ 1
thanks Bro
+ 1
if (Convert.ToInt32(Console.ReadLine()) >= 18) { Console.Write("Welcome");}