Well done!

You have completed Return Values!

Quiz Question 1 of 5

Will the below code compile, run, and produce the output "2"? If not, why not?

using System;

class Program
{
    static int Subtract(int a, int b) {
       return a - b;
    }

    static void Main(string[] args)
    {
        Console.WriteLine(Subtract(7, 5));
    }
}

Choose the correct answer below:

Skip Quiz Review Video