Дата активности | Консольный раздел | Прогресс | ||
---|---|---|---|---|
2016-08-02 | task2 | Алгоритмика | 65 % | |
2016-02-29 | task1 | Целые числа | 29 % | |
2016-02-28 | task1 | Строки | 100 % | |
2016-02-27 | task1 | Семантика | 100 % | |
Итого: | 75 % |
string stroka = Console.ReadLine();
stroka = stroka.ToLower();
Console.WriteLine(stroka.StartsWith("hello"));
Console.WriteLine(stroka.EndsWith("."));
string stroka = Console.ReadLine();
int index = stroka.IndexOf("(");
int index2 = stroka.IndexOf(")");
int index3 = (index2 - (index + 1));
Console.WriteLine(stroka.Substring(index + 1 , index3));
string slovo = Console.ReadLine();
Console.WriteLine(slovo.Replace("A", "~").Replace("O", "A").Replace("~", "O").Replace("a", "~").Replace("o", "a").Replace("~", "o") );
Супер задача!
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
String s3 = s2;
s2 = String.Copy(s1);
s1 = String.Copy(s3);
Console.WriteLine(s1 + "\n" + s2);
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
Console.WriteLine(s1.Length + " " + s2.Length);
Всё работает.