如何在同一行打印文本? [英] How do I print text in same line?
本文介绍了如何在同一行打印文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是 C# 的新手.在显示文本时,C# 会在新行中打印每段文本.但是,我希望将所有部分都放在同一行中,例如 458
;请参考下图.
我该怎么办?
I am new to C#. While displaying text, C# prints every piece of text in a new line. But, I would like have all the pieces in the same line like Four Hundred Fifty Eight
; kindly refer to the image below.
What should I do ?
推荐答案
使用 Console.Write() 代替 Console.WriteLine().
Instead of Console.WriteLine(), use Console.Write().
这篇关于如何在同一行打印文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文