Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Lesson 1.2 Part I
//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) { /* Name: * Date: * Class: 2 * Program: Lesson 1.2 Part I */ // Random numbers in C# (one way) Random numGen = new Random(); int num1 = numGen.Next(101); // number between 0 and 100 int num2 = numGen.Next(101); Console.WriteLine("Num1 is {0} and Num2 is {1}.", num1, num2); /* if syntax is ... if (condition) { statement(s) to execute } */ if (num1 > num2) { Console.WriteLine(num1 + " is higher than " + num2); } } } }
run
|
edit
|
history
|
help
0
número poderoso
Check if string is palindrome
Оператор switch
5. Generics
test code
4.3 Static typing: benefits, drawbacks and ways to minimise them
random no generation array
Клас cstatic
diagonal
for (int i= 2 ; i==5 ; i++)