Desafío: Declaración de Variables con Tipo Explícito
- Declare a variable called
bigValueof type unsigned long. Initiate it with a value of123456789. - Declare a variable called
smallValueof type integer. Initiate it with a value of1234.
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); } } }
- The keyword for unsigned long data type is
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); } } }
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 2
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Awesome!
Completion rate improved to 1.59
Desafío: Declaración de Variables con Tipo Explícito
Desliza para mostrar el menú
- Declare a variable called
bigValueof type unsigned long. Initiate it with a value of123456789. - Declare a variable called
smallValueof type integer. Initiate it with a value of1234.
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); } } }
- The keyword for unsigned long data type is
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); } } }
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 2