如何在结尾没有换行符的情况下将字符串打印到控制台?

问题描述:

我的问题是。

当您想用c#在问题旁回答时,您要输入什么?

what is it you type when you want your answer next to your question in c#

我的意思是这样,但是您在问题旁边输入答案。

I mean like this but you type the answer next to the question.

string product;

Console.WriteLine("What is the product you want?");

product = Console.ReadLine(); 


而不是使用 Console。 WriteLine()使用 Console.Write()