Défi : Déclaration de Variables à Type Explicite
- Déclarer une variable nommée 
bigValuede type unsigned long. L'initialiser avec la valeur123456789. - Déclarer une variable nommée 
smallValuede type integer. L'initialiser avec la valeur1234. 
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); } } }
- Le mot-clé pour le type de données unsigned long est 
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); } } }
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 2
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
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
Défi : Déclaration de Variables à Type Explicite
Glissez pour afficher le menu
- Déclarer une variable nommée 
bigValuede type unsigned long. L'initialiser avec la valeur123456789. - Déclarer une variable nommée 
smallValuede type integer. L'initialiser avec la valeur1234. 
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); } } }
- Le mot-clé pour le type de données unsigned long est 
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); } } }
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 2