Menu
Coddy logo textTech

Recap - Initialize Variables

Part of the Fundamentals section of Coddy's C# journey — lesson 13 of 69.

challenge icon

Challenge

Beginner

Write code that initializes the following variables:

  • k with the value 88
  • PI with the value 3.14
  • name with the value "bob"

Make sure you use the exact variables names and values. Remember, C# is case sensitive!

Try it yourself

using System;

public class Program {
    public static void Main(string[] args) {
        // Type your code below

        
        // Don't change the lines below
        Console.WriteLine("k = " + k);
        Console.WriteLine("PI = " + PI);
        Console.WriteLine("name = " + name);
    }
}

All lessons in Fundamentals