C# C# Basics Strings Combining Strings

sohail khalid
sohail khalid
549 Points

what is the answer for task 1 -1 combining strings plz

what is the answer for task 1 -1 combining strings plz

i really stack here

Program.cs
using System;

class Program
{
 static string Eat()
 {


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

}

1 Answer

Steven Parker
Steven Parker
176,675 Points

Break the task down and see if you can at least get closer. Here's some hints:

  • define two parameters for your method
  • set up a "return" that will pass back a string
  • make the string look like the sample in the instructions
  • use concatenation to join the parameters with the string