Предмет: Информатика, автор: foksЮля

исправить ошибки в паскале
program exp2;
const m=5; n=3;
type matr = array [ 1..m, 1..n ] of integer ;
var m: matr ; k, i, j : integer ; p: real ; повторно объявленный идентификатор
begin
clrscr ; неизвестный идентификатор
writeln ( ' k=' ) ; readln (k) ;
randomize ;
for i:= 1 to m do begin
for j:= 1 to n do begin
m [ i , j ] := random (101) ;
end ; end ;
for j:= 1 to n do begin
p:= 1;
for i:= 1 to m do begin
p:= p * m [i,j] ;
end ;
p := p ^ ( 1 / m ) ; нельзя делить
if p > k then writeln ( ' j = '; j: 5) ;неверное выражение
end ;
end.

Ответы

Автор ответа: Аноним
0
program exp2;

uses Crt;

const
  m=5; n=3;

type
  matr=array[1..m,1..n] of integer;

var
  mas:matr;
  k,i,j:integer;
  p:real;
begin
  ClrScr;
  Write('k='); Readln(k);
  Randomize;
  for i:=1 to m do begin
    for j:=1 to n do begin
      mas[i,j]:=Random(101);
      Write(mas[i,j],' ')
      end;
    Writeln
    end;
  for j:=1 to n do begin
    p:=1;
    for i:=1 to m do p:=p*mas[i,j];
    p:=Exp((1/m)*Ln(p));
    if p>k then writeln (' j= ',j:5)
    end
end.
Автор ответа: foksЮля
0
спасибо за помощь)
Автор ответа: Аноним
0
Пожалуйста. Для "спасибо" тут сердечко просто щелкают
Похожие вопросы
Предмет: Английский язык, автор: keyfor2020
1.You will______ the prices on the invoice.
a. look
b. see
c. watch
2.If you have option, do you have____ ?
a. a choice
b. a contract
c. a bill of sale
3.If you_______ an error in reviewing the proposal, please bring it to
your manager's attention.
a. get in
b. come across
c. come on
4.Safe driving prevents_______ and the awful_____ of knowing you
have caused others pain.
a. tragedy - remorse
b. accidents – safe
c. disease - reminder
5.The foreign - exchange market is based_______ the economic law of
supply and demand.
a. of
b. on
c. at
6.Exchange risk is a very real_____ for financial managers.
a. concern
b. conception
c. concept
7.Their_________was rewarded.
a. persistent
b. persist
c. persistence
8.Transportation officials have recommended____ fares.
a. to raise
b. to revise
c. to rise
9.A higher average______ rate accounted for one third of the financing
costs.
a. interest
b. interesting
c. interested
10.A subsidiary has entered ____ a partnership arrangement with
another company.
a. into
b. to
c. in
11.Trade is only one of many factors that cause____ change.
a. economical
b. economics
c. economic
12.Hard currency is backed by gold_____ .
a. research
b. reserves
c. reservation
13.Taxes have a very important impact _ _ foreign direct investment
decisions.
a. on
b. for
c. at
14.Licensing is______ to direct investment.
a. alteration
b. alternate
c. an alternative
15.The USA and Canada will become a common__________ where goods
will flow between the borders duty free.
a. shop
b. foreign exchange
c. market
Предмет: Математика, автор: блит