Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Herausforderung: Explizit Typisierte Variablen Deklarieren | Umgang mit Datentypen
C# Grundlagen

bookHerausforderung: Explizit Typisierte Variablen Deklarieren

  1. Declare a variable called bigValue of type unsigned long. Initiate it with a value of 123456789.
  2. Declare a variable called smallValue of type integer. Initiate it with a value of 1234.
main.cs

main.cs

copy
12345678910111213141516171819
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); } } }
  1. The keyword for unsigned long data type is ulong.
main.cs

main.cs

copy
123456789101112131415161718
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); } } }

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

What is the difference between `ulong` and `int` in C#?

Can you show me how to declare these variables in code?

What are some common uses for `ulong` and `int` types?

bookHerausforderung: Explizit Typisierte Variablen Deklarieren

Swipe um das Menü anzuzeigen

  1. Declare a variable called bigValue of type unsigned long. Initiate it with a value of 123456789.
  2. Declare a variable called smallValue of type integer. Initiate it with a value of 1234.
main.cs

main.cs

copy
12345678910111213141516171819
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); } } }
  1. The keyword for unsigned long data type is ulong.
main.cs

main.cs

copy
123456789101112131415161718
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); } } }

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
some-alt