C# C# Basics Methods Return Values

kal alben-mccave
kal alben-mccave
2,816 Points

C# code challenge return value

A good day can anyone assist me with this code challenge. thank you

Program.cs
using System;

class Program
{

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

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

}

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 51,854 Points

Here is a hint from the challenge itself:

In Main, you need to add the return values from the two calls to Multiply together: Multiply(2.5, 2) + Multiply(6, 7)