C# C# Basics Strings Combining Strings

I need some help with code

Whats wrong with the code below?

Program.cs
using System;

class Program
{

    static string Eat(string first, string second)
        string food = "I think " + first + " and " + second + " are tasty!";
    return food;

    static void Main(string[] args)
    {
        Console.WriteLine(Eat("apples", "blueberries"));
        Console.WriteLine(Eat("carrots", "daikon"));
    }

}

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 51,854 Points

Enclose your statements in brackets like this:

   static string Eat(string first, string second)
     {   
        string food = "I think " + first + " and " + second + " are tasty!";
        return food;   
     }