Ya no tienes que indagar más por todo internet porque estás al espacio exacto, contamos con la solución que buscas y sin liarte.
Ejemplo 1: cómo hacer un código de Visual Studio de aplicación C#
mkdir MyApp;cd MyApp;
dotnet new console
Ejemplo 2: programa simple en c# para consola vs code .net
//You should start writing your own code this will give you a headstart (This is tooken from Brakeys tut )
using System;
namespace C__Learning // Here Input Your Folder Name.
class Program
static void Main(string[] args)
//Change the color of Text
Console.ForegroundColor = ConsoleColor.Green;
Console.Title ="C#Learning";
Console.WindowHeight =40;
//Creating Var for input
Double num01;
Double num02;
//Writing a line in terminal saying Input a number:
Console.Write(" Input a number: ");
//converting it to a double because its og is a string
num01 = Convert.ToDouble( Console.ReadLine());
// gettin a second number
Console.Write("Input a second number: ");
//converting it to a double because its og is a string again
num02 = Convert.ToDouble( Console.ReadLine());
// multiplying both the numbers
Double result = num01 * num02;
//Giving the Result
Console.WriteLine("The result is " + result);
//Waiting for a key too close the program At the end
Console.ReadKey();
// this is for educational purposes.
Te mostramos comentarios y valoraciones
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)