//www.VideoSharp.info/Консоль/Строки/PadRight/Left
using System;
class VideoSharp
{
static void Main()
{
string[] s = new string[7];
for (int i = 0; i <= 6; i++) {
s[i]=Console.ReadLine();
}
foreach (string ss in s) {
Console.WriteLine(ss.PadRight(8) + ss.PadLeft(8));
}
}
}
//www.VideoSharp.info/Консоль/Строки/Remove
using System;
class VideoSharp
{
static void Main()
{
string str = Console.ReadLine();
string str2 = Console.ReadLine();
int a1 = str.IndexOf('(');
int b2 = str.IndexOf(')');
//найти позицию (
//позицию )
//удалить между ними слово
//по позиции ( вставить второе слово
//вывести результат
str = str.Remove(a1+1, b2-a1-1);
str = str.Insert(a1+1,str2);
Console.WriteLine(str);
//int l = str.IndexOf(' ');
//str = str.Insert(l, " "+str2);
//Console.WriteLine("{0}",str);
//Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Строки/Insert
using System;
class VideoSharp
{
static void Main()
{
string str = Console.ReadLine();
string str2 = Console.ReadLine();
int l = str.IndexOf(' ');
str = str.Insert(l, " "+str2);
Console.WriteLine("{0}",str);
//Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Строки/Last/IndexOf
using System;
class VideoSharp
{
static void Main()
{
string str = Console.ReadLine();
int p = str.IndexOf(' ');
int l = str.LastIndexOf(' ');
Console.WriteLine("{0} {1}",p,l);
//Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Строки/ToLower/Upper
using System;
class VideoSharp
{
static void Main()
{
string teremok = Console.ReadLine().ToUpper();
string a1 = Console.ReadLine().ToUpper();
string a2 = Console.ReadLine().ToUpper();
string a3 = Console.ReadLine().ToUpper();
string a4 = Console.ReadLine().ToUpper();
string a5 = Console.ReadLine().ToUpper();
Console.WriteLine(teremok.Contains(a1));
Console.WriteLine(teremok.Contains(a2));
Console.WriteLine(teremok.Contains(a3));
Console.WriteLine(teremok.Contains(a4));
Console.WriteLine(teremok.Contains(a5));
}
}
//www.VideoSharp.info/Консоль/Строки/ToLower/Upper
using System;
class VideoSharp
{
static void Main()
{
string s1,s2;
s1= Console.ReadLine();
s2= Console.ReadLine();
s1 = s1.ToUpper();
s2 = s2.ToUpper();
Console.WriteLine(s1==s2);
}
}
//www.VideoSharp.info/Консоль/Строки/Split
using System;
class VideoSharp
{
static void Main()
{
string a = Console.ReadLine ();
string [] w = a.Split ();
Console.WriteLine (w [0]);
Console.WriteLine (w [1]);
Console.WriteLine (w [2]);
Console.WriteLine (w [3]);
Console.WriteLine (w [4]);
}
}
string a = Console.ReadLine ();
string [] w = a.Split ();
Console.WriteLine (w [0]);
Console.WriteLine (w [1]);
Console.WriteLine (w [2]);
Console.WriteLine (w [3]);
Console.WriteLine (w [4]);
}
//www.VideoSharp.info/Консоль/Строки/CompareTo
using System;
class VideoSharp
{
static void Main()
{
string str = Console.ReadLine();
string str2 = Console.ReadLine();
int res = str.CompareTo(str2);
Console.WriteLine(res);
Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Строки/Copy
using System;
class VideoSharp
{
static void Main()
{
string a, b, temp;
a = Console.ReadLine();
b = Console.ReadLine();
temp = String.Copy(a);
a = b;
b = temp;
Console.WriteLine(a);
Console.WriteLine(b);
//Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Строки/CompareTo
using System;
class VideoSharp
{
static void Main()
{
string str = Console.ReadLine();
string str2 = Console.ReadLine();
int res = str.CompareTo(str2);
Console.WriteLine(res);
Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Разминка/Китайская стена
using System;
class VideoSharp
{
static void Main()
{
Console.WriteLine(new string('#', 1000));
Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Строки/Length
using System;
class VideoSharp
{
static void Main()
{
string str = Console.ReadLine();
string str2 = Console.ReadLine();
Console.WriteLine("{0} {1}",str.Length,str2.Length);
Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Разминка/Китайская стена
using System;
class VideoSharp
{
static void Main()
{
Console.WriteLine(new string('#', 1000));
Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Разминка/Дедушка Эхо
using System;
class VideoSharp
{
static void Main()
{
string s = Console.ReadLine();
Console.WriteLine(s);
Console.WriteLine(s);
//Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Разминка/Дядюшка Эхо
using System;
class VideoSharp
{
static void Main()
{
string s = Console.ReadLine();
Console.WriteLine(s);
Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Разминка/Считалка
using System;
class VideoSharp
{
static void Main()
{
Console.WriteLine("One");
Console.WriteLine("Two");
Console.WriteLine("Three");
Console.WriteLine("Four");
Console.WriteLine("Five");
//Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Разминка/Калькулятор
using System;
class VideoSharp
{
static void Main()
{
Console.WriteLine(12* (25+689)/(60-9)-12*3);
//Console.ReadKey();
}
}
//www.VideoSharp.info/Консоль/Разминка/Привет, Мир!
using System;
class VideoSharp
{
static void Main()
{
Console.WriteLine("Hello World!");
//Console.ReadKey();
}
}