7
What is the output of the following program?
var c = new Counter();
c.Add(); c.Add();
Console.WriteLine(c.Value);
class Counter
{
public int Value { get; private set; }
public void Add() => Value++;
}Easy