Last active
April 17, 2024 04:19
-
-
Save YurePereira/2526513ddfe2bfd6e4942677167395d4 to your computer and use it in GitHub Desktop.
Criando programa com a instrução de nível superior.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
List<string> colors = new List<string>() | |
{ | |
"Azul", "Roxo", "Vermelho" | |
}; | |
foreach (var color in colors) | |
{ | |
Console.WriteLine(string.Format("Color: {0}", color)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
List<string> colors = new List<string>() | |
{ | |
"Azul", "Roxo", "Vermelho" | |
}; | |
foreach (var color in colors) | |
{ | |
Console.WriteLine(string.Format("Color: {0}", color)); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Instrução de nível superior: | |
using System; | |
Console.WriteLine("Hello World!"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment