Just testing some types

This commit is contained in:
Geir Okkenhaug Jerstad 2024-11-29 12:20:19 +01:00
parent 19ea014088
commit bba0cec7f8

View file

@ -4,10 +4,13 @@
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
string name; bool ignoreCase = true;
Console.WriteLine("Enter Your name: "); string option = "/help";
name = Console.ReadLine();
Console.WriteLine($"Hello {name}!"); int comparison = string.Compare(option, "/Help", ignoreCase);
bool isHelpREquested = (comparison == 0);
Console.WriteLine($"Help Requested: {isHelpREquested}");
Console.WriteLine("\u0029");
} }
} }
} }