C# C# Basics Methods Return Values

I'm not too sure how to get the total from the returning values, I've tried adding them in the main but nothing works

Program.cs
using System;

class Program
{

    static double Multiply(double firstParam, double secondParam)
    {
        return firstParam * secondParam;
        return Multiply
    }

    static void Main(string[] args)
    {
        Multiply(2.5, 2) + Multiply(6, 7);


    }

}

1 Answer

Pascal Breitrück
PRO
Pascal Breitrück
Pro Student 3,204 Points

Hey Man ,

return in Multiply only the Values like this return firstParam * secondParam;

in the Main function calculate the result and print it out with Console.WriteLine(Multiply(2.5, 2)+Multiply(6, 7));

Greets Pascal

Gotcha, Thanks for the help man!