0

Why does the program not work?

Why does the program not work? The program must read the words in the sentence Console.Write(" Enter an offer"); string s=Console.ReadLine(); string [] arr s1=s.Split(' '); n=s1.Length; Console.WriteLine(n);

25th Dec 2019, 4:41 AM
Мария
2 Answers
+ 1
Я не понял, чего ты хотела добиться, но с таким исправлением работает: https://code.sololearn.com/cZ6KuerRhPqR/?ref=app
25th Dec 2019, 7:28 AM
Randych
Randych - avatar
0
мне нужно, чтоб программа считала слова в предложении, но не считала пробелы
25th Dec 2019, 7:49 AM
Мария