Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
public delegate void Operation(int a, int b);
class Program
{
static void Add(int a, int b)
{
Console.WriteLine("Sum: " + (a + b));
}
static void Multiply(int a, int b)
{
Console.WriteLine("Product: " + (a * b));
}
static void Main()
{
Operation op;
op = Add;
op(5, 10);
op = Multiply;
op(5, 10);
}
}Coding works best on desktop or with an external keyboard.