Declarando Variáveis com Tipos Explícitos
Declare uma variável chamada
bigValue
do tipo unsigned long. Inicie-a com um valor de123456789
.Declare uma variável chamada
smallValue
do tipo integer. Inicie-a com um valor de1234
.
main
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using 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);
}
}
}
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
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using 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);
}
}
}
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 o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo