Recap - Initialize Variables
Part of the Fundamentals section of Coddy's C# journey — lesson 13 of 69.
Challenge
BeginnerWrite code that initializes the following variables:
kwith the value88PIwith the value3.14namewith 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
4Operators Part 1
Arithmetic OperatorsModulo OperatorIncrement/DecrementPost Increment/DecrementArithmetic Shortcuts5Operators Part 2
Comparison OperatorsLogical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 3