Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Public access specifier
//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 Rectangle { public double length,width; public double GetArea() { return length * width; } public void Display() { Console.WriteLine("Length : {0}",length); Console.WriteLine("Width : {0}",width); Console.WriteLine("Area : {0}",GetArea()); } } public class Program { public static void Main(string[] args) { Rectangle p = new Rectangle(); p.length = 12.3; p.width = 15.4; p.Display(); //Your code goes here // Console.WriteLine("Hello, world!"); } } }
run
|
edit
|
history
|
help
0
Program
and
asxs sxsd
Event .net guidelines
convert String To Guid
jjj
Parsing a multi-line text file with comments
SumOfEvens
sdfrgthyjukiujyht5r4der
shorten file paths in a commandline using regex