@nakov/

square-area-csharp

C#

Calculate a square area in C#

fork
loading
Files
  • main.cs
  • main.exe

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6205615859637459","path":"main.cs","file":{"path":"main.cs","content":{"asEncoding":{"base64":"dXNpbmcgU3lzdGVtOwoKY2xhc3MgU3F1YXJlQXJlYSB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpIHsKICAgICAgICB2YXIgc2l6ZSA9IDU7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIlNpemUgPSAiICsgc2l6ZSk7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIkFyZWEgPSAiICsgc2l6ZSAqIHNpemUpOwogICAgfQp9"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
using System;

class SquareArea {
    public static void Main() {
        var size = 5;
        Console.WriteLine("Size = " + size);
        Console.WriteLine("Area = " + size * size);
    }
}