c# 打印变量值
Here, we are declaring 4 different types of variables (char, int, float and string) and assigning them with the appropriate values and then printing the values.
在这里,我们声明了4种不同类型的变量( char , int , float和string ),并为其分配了适当的值,然后输出这些值。
To print values along the message, use the following syntax with Console.Write() or Console.WriteLine():
要在消息中打印值,请对Console.Write()或Console.WriteLine()使用以下语法:
Console.Write ("Message" + variable_name);
Console.WriteLine("Message" + variable_name);
Program:
程序:
/*c# basic pr