using System;
using System.Text;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static string SetSB(StringBuilder sb, string[] arr)
{
foreach (string s in arr)
{
sb.Append(s).AppendLine();
}
return sb.ToString();
}
static void Main(string[] args)
{
StringBuilder sb1 = new StringBuilder();
string[] arr1 = { "c#", "java", "c++", "c" };
Console.WriteLine(SetSB(sb1, arr1));
StringBuilder sb2 = new StringBuilder();
string[] arr2 = { "css", "html", "php", "javascript" };
Console.WriteLine(SetSB(sb2, arr2));
}
}
}
/*
run:
c#
java
c++
c
css
html
php
javascript
*/