23
1
using System;
2
3
public class MathStuff
4
{
5
static int Square(int a)
6
{
7
int square = a * a;
8
Console.WriteLine("Called Square(int a)");
9
return square;
10
}
11
12
static double Square(double b)
13
{
14
double square = b * b;
15
Console.WriteLine("Called Square(double b)");
16
return square;
17
}
18
19
public static void Main()
20
{
21
Console.Write("Square of 9 is {0}", Square(b: 9));
22
}
23
}
Cached Result