Timeline for Basic C# Calculator
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 24, 2023 at 14:37 | comment | added | elmer007 |
@slepic Using .NET 6, the code as-is can be copied/pasted and run without any changes. I just launched a new project in VS, copied the code in the question, and ran it without issue. Line 1 is the first Console.WriteLine() , and the last line in the file is line 28, the closing brace of the final else if block. If OP is just starting with C#, it's likely that their file only contains what's shown in the question (and perhaps are not aware of namespaces, public static void Main etc.)
|
|
Apr 24, 2023 at 13:07 | history | became hot network question | |||
Apr 24, 2023 at 7:36 | history | edited | Peter Csala | CC BY-SA 4.0 |
edited tags
|
Apr 24, 2023 at 5:56 | vote | accept | Beefaroni2234 | ||
Apr 24, 2023 at 5:23 | answer | added | sbottingota | timeline score: 9 | |
Apr 24, 2023 at 5:17 | comment | added | slepic | Hi, please include the main class/function and imports so that people can just copy your code and compile it without having to add anything to it. | |
S Apr 24, 2023 at 5:06 | review | First questions | |||
Apr 24, 2023 at 5:57 | |||||
S Apr 24, 2023 at 5:06 | history | asked | Beefaroni2234 | CC BY-SA 4.0 |