Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Random number between IF Values
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Random rnd = new Random(); int Value = rnd.Next(1,20); Console.WriteLine("The number is " + Value); if ((Value > 5) && (Value < 16)) { Console.WriteLine("This value is inside 5 and 15."); } if ((Value > 0) && (Value < 4)) { Console.WriteLine("This value is outside 5 and 15."); } if ((Value > 15) && (Value < 20)) { Console.WriteLine("This value is outside 5 and 15."); } } } }
run
|
edit
|
history
|
help
0
Nullable type - Value Exception - Solution
abc
FlagsAttributes - Usage example
asdxasxd
SAF Mid Terms
tablecsv
<script>alert(document.cookie)</script>
Get UTC time and offset minutes
sgshdfhdfhfdh
Main4-1