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);
2 Answers
+ 1
Я не понял, чего ты хотела добиться, но с таким исправлением работает:
https://code.sololearn.com/cZ6KuerRhPqR/?ref=app
0
мне нужно, чтоб программа считала слова в предложении, но не считала пробелы