Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Declaring Explicitly Typed Variables | Dealing with Data Types
C# Basics

Declaring Explicitly Typed VariablesDeclaring Explicitly Typed Variables

  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.
cs

main.cs

1. The keyword for unsigned long data type is ulong.

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

Все було зрозуміло?

Секція 2. Розділ 2
course content

Зміст курсу

C# Basics

Declaring Explicitly Typed VariablesDeclaring Explicitly Typed Variables

  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.
cs

main.cs

1. The keyword for unsigned long data type is ulong.

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

Все було зрозуміло?

Секція 2. Розділ 2
some-alt