Desafio: Declaração de Variáveis com Tipo Explícito
- Declarar uma variável chamada 
bigValuedo tipo unsigned long. Inicializá-la com o valor123456789. - Declarar uma variável chamada 
smallValuedo tipo inteiro. Inicializá-la com o valor1234. 
main.cs
12345678910111213141516171819using System.Drawing; using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Replace ___ with necessary data type ___ bigValue = 123456789; ___ smallValue = 1234; Console.WriteLine(bigValue); Console.WriteLine(smallValue); } } }
- A palavra-chave para o tipo de dado unsigned long é 
ulong. 
main.cs
123456789101112131415161718using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Replace ___ with necessary data type ulong bigValue = 1234567; int smallValue = 1234; Console.WriteLine(bigValue); Console.WriteLine(smallValue); } } }
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 2
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
What is the difference between `ulong` and `int` in C#?
Can you show me how to declare these variables in C# code?
What happens if I try to assign a negative value to an `ulong` variable?
Awesome!
Completion rate improved to 1.56
Desafio: Declaração de Variáveis com Tipo Explícito
Deslize para mostrar o menu
- Declarar uma variável chamada 
bigValuedo tipo unsigned long. Inicializá-la com o valor123456789. - Declarar uma variável chamada 
smallValuedo tipo inteiro. Inicializá-la com o valor1234. 
main.cs
12345678910111213141516171819using System.Drawing; using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Replace ___ with necessary data type ___ bigValue = 123456789; ___ smallValue = 1234; Console.WriteLine(bigValue); Console.WriteLine(smallValue); } } }
- A palavra-chave para o tipo de dado unsigned long é 
ulong. 
main.cs
123456789101112131415161718using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Replace ___ with necessary data type ulong bigValue = 1234567; int smallValue = 1234; Console.WriteLine(bigValue); Console.WriteLine(smallValue); } } }
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 2