あなたの名前は maeda あなたの年齢は 67 あなたの名前はmaedaで年齢は67歳です |
前田稔(Maeda Minoru)の超初心者のプログラム入門
![]()
![]()
/*************************************************/
/*★ Console.WriteLine() ReadLine() 前田 稔 ★*/
/*************************************************/
using System;
class Text
{
public static int Main()
{
Console.Write("あなたの名前は ");
string YourName = Console.ReadLine();
Console.Write("あなたの年齢は ");
string YourAge = Console.ReadLine();
Console.WriteLine("あなたの名前は{0}で年齢は{1}歳です", YourName, YourAge);
return 0;
}
}
|
Console.Write("あなたの名前は ");
string YourName = Console.ReadLine();
|
![]()
![]()