how to start an if statement in c#
your mom lol if(number > 10)
Console.WriteLine("test1");
else
if(number < 0)
Console.WriteLine("test2");string emotions;
emotions = Console.ReadLine();
//for emotions say the user input was either
//happy,sad and mad
if (emotions == "happy")
{
Console.Write("You are happy");
}
else if (emotions == "sad")
{
Console.Write("You are sad");
}
else if (emotions == "mad")
{
Console.Write("You are mad");
}
else
{
Console.Write("Unknown input");
}if (1 + 1 = 2)
{
Console.WriteLine("1 + 1 = 2");
}
else
{
Console.WriteLine("1 + 1 = 3");
}
Also in C#:
- c# input integer
- c# null conditional operator if statement
- switch case c# contains
- write last line txt file c#
- get what week of the month c#
- rotate object towards target rotation slowly unity
- c# download outlook msg file attachment
- how to redirect to extern page in .net core
- c# function
- array copy c#
- git set origin
- get hash c#
- change navigation bar of master detail page xamarin form
- unity cancel invokerepeating
- c sharp split by newline
- texture to image unity
- validating file upload asp.net core mvc
- convert array object to int[] c#
- add spaces between words unity
- c# bool list count true
- how to reduce garbage collection c#
- c# delegate return value invoke
- how to convert iformfile to byte array c#
- add text to combobox c#