с клавиатуры вводится строка из нескольких символов разделенных одним или несколькими пробелами.определите количество слов в строке
Предмет:
ИнформатикаАвтор:
vanessabeylvar
s : string;
flag : boolean;
i, c : integer;
begin
readln (s);
c := 0; flag := false;
for i := 1 to length (s) do
begin
if flag then
begin
if s[i] = ' ' then flag := false;
end
else
if s[i] <> ' ' then
begin
inc (c);
flag := true;
end;
begin
end;
end;
writeln (c);
end.
Автор:
jayceemcdowellДобавить свой ответ
AUse the expressions from the box to complete the sentences. Some are used more than once.
/ 5
such / so / like / so / that
0 It’s _______such________ a long journey that we’ll need to stop on the way to rest.
1 The waiter has been _______________ nice to us that we are going to give him a dollar tip.
2 Visitors to Washington DC may admire the monuments to honour _______________ great men as George Washington, Abraham Lincoln and Thomas Jefferson.
3 She has to earn lots of money _______________ she can afford to study at a private school.
4 I have never felt _______________ lonely in my life.
5 She is interested in Impressionists ______________ Degas and Monet.
Предмет:
Английский языкАвтор:
caesar86Ответов:
Смотреть
Предмет:
ЛитератураАвтор:
maxwellmendozaОтветов:
Смотреть
Предмет:
Русский языкАвтор:
paytongca3Ответов:
Смотреть
Радиус окружности уменьшили в 2 раза . определите , как изменится при этом длина окружности
Предмет:
МатематикаАвтор:
nathanialyzxwОтветов:
Смотреть