Course Content
C# Basics
C# Basics
Declaring Explicitly Typed Variables
- Declare a variable called
bigValue
of type unsigned long. Initiate it with a value of123456789
. - Declare a variable called
smallValue
of type integer. Initiate it with a value of1234
.
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);
}
}
}
Everything was clear?
Section 2. Chapter 2
Course Content
C# Basics
C# Basics
Declaring Explicitly Typed Variables
- Declare a variable called
bigValue
of type unsigned long. Initiate it with a value of123456789
. - Declare a variable called
smallValue
of type integer. Initiate it with a value of1234
.
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);
}
}
}
Everything was clear?
Section 2. Chapter 2