Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fuck this
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here int randomNumber = 0; int guess = 337; Random random = new Random(); randomNumber = random.Next(1, 1001); if (guess < randomNumber +100){ Console.WriteLine("rnummer lite större än guess" + " " + randomNumber); } else if(randomNumber > guess ){ Console.WriteLine("rnummer alldeles större än guess" + " " + randomNumber); } else if (guess > randomNumber -100){ Console.WriteLine("rnummer lite mindre än guess" + " " + randomNumber); } else if(randomNumber < guess ){ Console.WriteLine("rnummer alldeles mindre än guess" + " " + randomNumber); } Console.WriteLine(randomNumber); } } }
run
|
edit
|
history
|
help
0
Калькулятор
Trading
Main5.1
Generic operator test
Program to print pyramid using numbers
VB6 DateSerial to C#
vigenere cypher
Byte array to base 64 string
codejam1a1
Pyramid using C#