Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Random number + IF var change2
//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 Rannum = rnd.Next(1,5); int x = 35; int r = 45; int w = 25; string b = "Hello"; if (Rannum == 2) { x = 30; r = 40; w = 20; b = "Fuck"; } if (Rannum == 3) { x = 3; r = 4; w = 2; } Console.WriteLine("x = {0} r = {1} w = {2} Random number = {3} {4}", x, r, w, Rannum, b); } } }
run
|
edit
|
history
|
help
0
gh
Find duplicates in a given integer array
SCZDXA S
congtodien
dice roll
Find Max Number Of Occurences in an int array
ERGDV CSXDXS
Odd and Even Product
Program A
saxasdcdf