Дата активности | Видеокурс | Прогресс | ||
---|---|---|---|---|
2019-09-19 | start | Начало здесь | % | |
2019-09-17 | soft0 | Демо софт | 15 % | |
Итого: | 12 % |
Дата активности | Консольный раздел | Прогресс | ||
---|---|---|---|---|
2019-11-19 | book | 010. Условия | 75 % | |
2019-10-14 | book | 001. Числа | 100 % | |
2019-09-30 | book | 000. Строки | 100 % | |
Итого: | 92 % |
Попробуй почитать Прудона, те же мысли более внятно.
В Visual Studio работает, Робот находит ошибку:
string a = Console.ReadLine();
string b = Console.ReadLine();
bool res = a.Equals(b);
bool res2 = a.Equals(b, StringComparison.OrdinalIgnoreCase);
int c = res ? 1 : -1;
int c2 = res2 ? 1 : -1;
//case-sensitive
Console.WriteLine(c);
//case-insensitive
Console.WriteLine(c2);
//wait for enter
Console.WriteLine("\nPress Enter Key to Exit..");
Console.ReadLine();
Что не правильно?
Using foreach:
string phrase = Console.ReadLine();
string[] words = phrase.Split(' ');
foreach (var word in words)
{
Console.WriteLine(word);
}