我必须编写一个程序,在输入三个名字后它应该用“Hello!”回答我,但是 Console.Writeline 函数存在问题......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace homework1
{
class Program
{
static int Main()
{
string firstName = Console.ReadLine();
string surName = Console.ReadLine();
string lastName = Console.ReadLine();
Console.WriteLine("Hello, " + firstName[] + "!");
//Console.WriteLine("Your full name is " + fullName + ".");
}
}
}