Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Lesson 2
//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) { Rectangle rect = new Rectangle(20.0, 10.0); double area = rect.GetArea(); Console.WriteLine("Area of Rectangle: {0}", area); } } public class Rectangle { public double length; public double width; public Rectangle (double l, double w) { length = l; width = w; } public double GetArea() { return length * width; } } }
run
|
edit
|
history
|
help
0
GYT
Обненник 24/7
Examples of JS-Like higher-order functions in C#
p link gener tor
Planet-D ver. 0.5
Struct Ejemplo
test_hash
Intuit // C# // listing_4.1 (Console.WriteLine _ Форматный вывод)
Yoo
Namespace basic