Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Extension Methods (edited)
<script>alert(document.cookie)</script>
Find the value of a specific span in an html script
Codenew
ASCII table generator
Battle Algorythm
HashPassword
SquareMatrixPlusFieldMatrix
c# kare çizimi
Is first character of MD5 hash evenly distributed?
Please log in to post a comment.