c#hello world_C#| 打印消息/文本(用于打印Hello world的程序)

c#hello world

To print the message/text or any value – we use two functions:

要打印消息/文本或任何值–我们使用两个功能:

  1. Console.Write ();

    Console.Write();

    This function displays text, values on the output device and does not insert a new line after the message.

    此功能在输出设备上显示文本,值,并且在消息后不插入新行。

  2. Console.WriteLine();

    Console.WriteLine();

    This function displays text, values on the output device and inserts a new line after the message.

    此功能在输出设备上显示文本,值,并在消息后插入新行。

So, in this program – we are printing some of the messages with and without inserting new line after the message. And also explaining how we can print new line using escape sequence \n between the messages.

因此,在此程序中–我们正在打印某些消息,在消息之后插入或不插入新行。 还要说明如何

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值