LoginSignup
3
1

More than 5 years have passed since last update.

文字列を連結するプログラムの作成 C#

Posted at

はじめに

今回は文字列を連結させる簡単なプログラムを作成しました。

表示させるのはVisualstudioを連結させたいと思います。

ソース

namespace Sample
{
    class Sample
    {
        static void Main()
        {
            string str1 = "Visual";
            string str2 = "studio";

            StringBuilder sb = new StringBuilder();
            sb.Append(str1);
            sb.Append(str2);

            string result = sb.ToString();

            Console.WriteLine(result);

            Console.ReadKey();
        }
    }
}

無題.png

実行結果

a.png

3
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1