Fundamentals9 / 12
Up next

var and explicit types

// var infers the type from the value
var name = "Ada";
// or state the type explicitly
int age = 36;
double pi = 3.14;
Console.WriteLine($"{name} {age} {pi}");
What you're solving

var infers the type, or name it outright