They should all be members of the class, like this: ```cs using System; internal class Program {

They should all be members of the class, like this:
using System;

internal class Program
{
private static void Main(string[] args)
{
double total;
total = Multiply(2, 3, 4);
Console.WriteLine(total);
}

static double Multiply(double a, double b)
{
return a * b;
}
static double Multiply(double a, double b, double c)
{
return a * b * c;
}
}
using System;

internal class Program
{
private static void Main(string[] args)
{
double total;
total = Multiply(2, 3, 4);
Console.WriteLine(total);
}

static double Multiply(double a, double b)
{
return a * b;
}
static double Multiply(double a, double b, double c)
{
return a * b * c;
}
}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?