3.0a: Types Challenges
In this module we'll provide challenges for C# types and variables.
File Location
Right click on the solution you made in the first module, go to Add > New Project.
Select Console App (.NET Framework).
Name it
03_Types_Challenges
.Write your code for this module within
Program.cs
of that project.
Bronze
Create a list of value types: int, string, bool, float, double, decimal.
Do two examples for each type.
One is a declaration only.
The other is a declaration with initializer.
Print some of the values in the console.
Silver
Use those types to concatenate a string, any string will do.
Hint: The
+
operator can be used with strings.
Gold
Declare the year you were born as a single string concatenated from several variables.
Last updated