Поделитесь своими знаниями, ответьте на вопрос:
С++. Задача. В двоичном файле "STUD.dat" содержатся данные о студентах группы: фамилия, 4 оценки за сессию. Требуется из данных создать текстовый файл в виде таблицы с шапкой, поместив туда всю информацию о студентах, чей средний выше среднего по группе, указав все данные о студенте
uses math, Classes ;
var x,y,z:integer;
begin
writeln('vedite 1 chislo');readln(x);
writeln('vedite 2 chislo');readln(y);
writeln('vedite 3 chislo');readln(z);
begin
if ((x>y) and (x>z)) then writeln('samoe bolshoe chislo ',x)
else
if ((y>x) and (y>z)) then writeln('samoe bolshoe chislo ',y)
else
if ((z>x) and (z>y)) then
writeln('samoe bolshoe chislo ',z);
end;
begin
if ((x<y) and (x<z)) then
writeln('samoe malenkoe chislo ',x)
else
if ((y<x) and (y<z)) then
writeln('samoe malenkoe chislo ',y)
else
if ((z<x) and (z<y)) then
writeln('samoe malenkoe chislo ',z);
end;
readln;
end.