Предмет: Информатика, автор: Mantico

Даны три массива слов S11, ... , S115 ; S21, ... , S210 ; S31, ... , S312.
Вывести три списка: из массива S1- слова, начинаю¬щиеся на букву В; из массива S2 - слова, начинающиеся на букву Ц; из массива S3 - слова, начинающиеся на букву А.


Аноним: Язык, можно ли использовать процедуры и функции пользователя?
Аноним: И еще, я правильно понимаю, что S11...S115 на самом деле означает 15 элементов массива S1, имеющих номера от 1 до 15?
Mantico: Да вы правильно поняли что там 15 элементов извените что так написал, язык программирования Паскаль abc

Ответы

Автор ответа: Аноним
2
const
  n1=15;
  n2=10;
  n3=12;
type
  V=array[1..15] of string;
procedure M_in(s:string; var a:V; n:integer);
{ ввод данных в массив }
var i:integer;
begin
  Writeln('Вводите по одному ',n,' элементов массива ',s);
  for i:=1 to n do Readln(a[i])
end; 

procedure M_out(var a:V; n:integer; c:char);
{ выводит элементы, начинающиеся с указанного символа }
var i:integer;
begin
  Writeln('*** Слова на букву ',c,' ***');
  for i:=1 to n do
    if a[i][1]=c then Writeln(a[i]);
  Writeln
end; 

var
  s1,s2,s3:V;
begin
  M_in('S1',s1,n1);
  M_in('S2',s2,n2);
  M_in('S3',s3,n3);
  M_out(s1,n1,'В');
  M_out(s2,n2,'Ц');
  M_out(s3,n3,'А');
end.


Mantico: Помоги еще с одним вопросом http://znanija.com/task/11535991
Mantico: язык программирования тот же
Mantico: можете помочь еще раз очень прошу http://znanija.com/task/12327255
Похожие вопросы
Предмет: Английский язык, автор: 1Афина1
Exercise 1.

Open the brackets using infinitive or gerund.

Why do we need bread? I remember _________ it. (buy)
When you see Clair, remember _________ my regards to her. (give)
I forgot ___________ his letter but I can do it now. (answer)
Sorry, I didn’t recognize you. I forgot _________ you. (meet)
(After the interview) I regret_________ that you have not been hired.(say)
He regrets _________ this mobile phone. It breaks down all the time. (buy)
Please, remember __________this fax or my boss will be angry. (send)
They will always remember __________ in that park. (meet)
Did you forget_________ her? She will be really upset! (invite)
You shouldn’t remember __________ with him. It was long time ago. (quarrel)


Exercise 2.

Open the brackets using infinitive or gerund.

I don’t remember _____ (to see) Mitch at the basketball tournament. Perhaps he was ill.
He regrets ______ (to argue) with the referee as it resulted in his being sent off the pitch.
The cyclist had to stop _____ (to mend) a flat tyre during the race.
If she tried ______ (to use) a lighter racquet, her game might improve.
I regret ______ (to inform) you that your injury will prevent you from playing any more matches this season.
He means ______ (to move) the Glasgow.
The surgeon tried ______ (to save) the patient.
Did you remember ______ (to tell) Chris to bring his skates with him? We’re going to the ice rink after work.
You should stop _______ (to smoke) if you want to enter the marathon next year.
Working harder means _______ (to get) more money.
Предмет: Русский язык, автор: диас124
Предмет: Окружающий мир, автор: yulya9784