Desafio: Declaração de Variável
Complete o código declarando as variáveis value_1 e value_2 com os valores 10 e 20, respectivamente.
main.cs
12345678910111213141516namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Write code below this line // Write code above this line System.Console.WriteLine("Value 1: " + value_1); System.Console.WriteLine("Value 2: " + value_2); } } }
- Utilize a palavra-chave 
vare o operador de atribuição (=) para a declaração de variáveis. 
main.cs
1234567891011121314151617namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Write code below this line var value_1 = 10; var value_2 = 20; // Write code above this line System.Console.WriteLine("Value 1: " + value_1); System.Console.WriteLine("Value 2: " + value_2); } } }
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 9
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
Can you show me how to declare the variables using the `var` keyword?
What is the correct syntax for assigning values to variables in JavaScript?
Can you provide an example of declaring and assigning these variables?
Awesome!
Completion rate improved to 1.56
Desafio: Declaração de Variável
Deslize para mostrar o menu
Complete o código declarando as variáveis value_1 e value_2 com os valores 10 e 20, respectivamente.
main.cs
12345678910111213141516namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Write code below this line // Write code above this line System.Console.WriteLine("Value 1: " + value_1); System.Console.WriteLine("Value 2: " + value_2); } } }
- Utilize a palavra-chave 
vare o operador de atribuição (=) para a declaração de variáveis. 
main.cs
1234567891011121314151617namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Write code below this line var value_1 = 10; var value_2 = 20; // Write code above this line System.Console.WriteLine("Value 1: " + value_1); System.Console.WriteLine("Value 2: " + value_2); } } }
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 9