val=123 str=文字列 |
前田稔(Maeda Minoru)の超初心者のプログラム入門
/***************************************/ /*★ Console.WriteLine() 前田 稔 ★*/ /***************************************/ using System; class Print { public static int Main() { int val = 123; string str = "文字列"; Console.WriteLine("val={0} str={1}", val,str); Console.ReadLine(); return 0; } } |
int val = 123; string str = "文字列"; |
Console.WriteLine("val={0} str={1}", val,str); |
Console.WriteLine("val={0}", val); |
Console.WriteLine("str={0}", str); |
int val = 123; string str = "文字列"; Console.WriteLine("val=" + val + " str=" + str); |
//Console.ReadLine(); |