Program Total_Cost;
Var T:array [1..10] of real; C:array [1..10] of real;
I: integer; AllPrice:real;
Begin
AllPrice:=0;
for I :=1 to 10 do
begin
write (I, ' товар');
write( 'Количество товара:');
read T[I];
write( 'Цена за единицу товара:');
read( C[I]);
AllPrice:=AllPrice + T[I] * C[I];
end;
write( 'Общая стоимость покупок = ', AllPrice, ' руб.');
end.