diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..daab734 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "dotnet.defaultSolution": "FirstProject.sln", + "editor.fontSize": 14, + "window.zoomLevel": 1, + "terminal.integrated.fontSize": 14, + "workbench.tree.indent": 23 + +} \ No newline at end of file diff --git a/Algorithms/Program.cs b/Algorithms/Program.cs index 3751555..f8f3751 100644 --- a/Algorithms/Program.cs +++ b/Algorithms/Program.cs @@ -1,2 +1,26 @@ // See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +namespace Algorithms; +using System; + +class Point{ + + private double x; + private double y; + + public Point(double x, double y){ + this.x = x; + this.y = y; + } + + public double Distance(){ + return Math.Sqrt(x * x + x * y); + } +} + + +class Foo{ + public static void Main(String[] args){ + Point p = new Point(3, 4); + Console.WriteLine("Hello World From A Class: " + p.Distance()); + } +}