Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics Strings Strings

I don`t understand this strings question in c#.

I dont understand this question at all... it seems wrong to me. here is a link to the group of questions. https://teamtreehouse.com/library/c-basics-2/strings/strings I mostly only had problems with this one question: Fill in the blanks to complete this code so it will compile and print "Hello, Treehouse!" out to the terminal. this is what it showed.

using System;

class Program {

static void Main(string[] args)
{
    var name = "Treehouse";
    Console.WriteLine("Hello, name!";
}

}

Im supposed to fill in the blanks before and after hello, and after name is called. isnt there supposed to be a () around the name variable? example: ("name") I dont understand this. please help!

1 Answer

Reggie Williams
STAFF
Reggie Williams
Treehouse Teacher

Hey Tucker Kunkle you can use the plus sign to include the variable like in this video