@nakov/

foots-to-meters-csharp

C#

Converts foots to meters 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.3410654028352742","path":"main.cs","file":{"path":"main.cs","content":{"asEncoding":{"base64":"dXNpbmcgU3lzdGVtOwoKY2xhc3MgRm9vdHNUb01ldGVyc0NvbnZlcnRlciB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpIHsKICAgICAgICBDb25zb2xlLldyaXRlKCJGb290cyA9ICIpOwogICAgICAgIHZhciBmb290cyA9IGRvdWJsZS5QYXJzZShDb25zb2xlLlJlYWRMaW5lKCkpOwogICAgICAgIHZhciBtZXRlcnMgPSBmb290cyAqIDAuMzA0ODsKICAgICAgICBDb25zb2xlLldyaXRlKCJNZXRlcnMgPSAiKTsKICAgICAgICBDb25zb2xlLldyaXRlTGluZShtZXRlcnMpOwogICAgfQp9"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
using System;

class FootsToMetersConverter {
    public static void Main() {
        Console.Write("Foots = ");
        var foots = double.Parse(Console.ReadLine());
        var meters = foots * 0.3048;
        Console.Write("Meters = ");
        Console.WriteLine(meters);
    }
}