Hello, I’m working on this task:
Write a program that reads the user’s First name and Second name. Then output “Should I call you {First name} or {Second name}?” For example:
>John
>Smith
Should I call you John or Smith?
Here is my code:
namespace ConsoleInput
{
public class WhatIsYourName
{
public static void Main(string[] args)
{
string firstName = ;
string secondName = ;
Console.WriteLine($"Should I call you {firstName} or {secondName}?");
{
string name = Console.ReadLine();
}
}
}
}
Can anyone please help me to solve it?