C# C# Basics Methods Return Values

Sharon Gracious Thato Khumomotse
Sharon Gracious Thato Khumomotse
1,460 Points

C# values

Hello. Please help. I'm getting an error on line 15.

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);
        Multiply(2.5, 2) + Multiply(6, 7);
    }

}

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 51,961 Points

The challenge asks you to add the values and print the result. You should use Console.WriteLine in Main.