fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Sample205
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string str1, str2;
  14. Console.Write("str1=");
  15. str1 = Console.ReadLine(); // 1つ目の文字列を入力
  16. Console.Write("str2=");
  17. str2 = Console.ReadLine(); // 2つ目の文字列を入力
  18. Console.WriteLine("str1 + str2 = {0}", str1 + str2);
  19. }
  20. }
  21. }
Success #stdin #stdout 0s 131520KB
stdin
Standard input is empty
stdout
str1=str2=str1 + str2 =