using System;
using System.Text.RegularExpressions;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
string s = "c\n" +
"c++\n" +
"c#\n" +
"java\n" +
"python\n";
s = Regex.Replace(s, @"\n", " ");
Console.WriteLine(s);
}
}
}
/*
run:
c c++ c# java python
*/