Var A,B,C,M:real; Begin Write('A = ');ReadLn(A); Write('B = ');ReadLn(B); Write('C = ');ReadLn(C); M:=A; if M<B then M:=B; if M<C then M:=C; if A>B then A:=B; if A>C then A:=C; Write(A,' + ',M,' = ',A+M) End.
//PascalABC.NET (версия 3.1, сборка 1198 от 11.03.2016) var a,n,k,i,j,s:integer; begin writeln('Количество учеников и количество оценок'); readln(n,k); for i:=1 to n do begin for j:=1 to k do begin write('Ученик № ',i, ' оценка № ',j,' = '); readln(a); s:=s+a; end; end; println('Средняя оценка группы ',s/(n*k):6:3); end.
A,B,C,M:real;
Begin
Write('A = ');ReadLn(A);
Write('B = ');ReadLn(B);
Write('C = ');ReadLn(C);
M:=A;
if M<B then M:=B;
if M<C then M:=C;
if A>B then A:=B;
if A>C then A:=C;
Write(A,' + ',M,' = ',A+M)
End.