#include <iostream.h>
#include <math.h>
void main()
{
float x;
float a,d,c,k;
cout<<"Vvedit a ";
cin>>a;
cout<<"Vvedit d ";
cin>>d;
cout<<"Vvedit c ";
cin>>c;
cout<<"Vvedit k ";
cin>>k;
x=(a+(d-12)*3)*(c-5*k);
cout<<"x = "<<x;
}
програма написана на мові програмування с++
Такое же задавали, только в эл. виде делать)
var x,y: real;
begin
readln(x);
if x>8 then y:=x/4 else y:=x*5;
writeln(y);
end.
Program Task;
Const pupils = 20; subjects = 10;
Var marks: Array[1..pupils, 1..subjects] of Integer;
marks_average: Array[1..pupils] of Real;
i, j: Integer;
all_marks_average: Real;
Begin For i := 1 To pupils Do
Begin
WriteLn('Введите через пробел оценки ученика №', i);
For j := 1 To subjects Do
Read(marks[i, j]);
End;
For i := 1 To pupils Do
Begin
For j := 1 To subjects Do
marks_average[i] := marks_average[i] + marks[i, j];
marks_average[i] := marks_average[i] / subjects;
End; For i := 1 To pupils Do
all_marks_average := all_marks_average + marks_average[i];
all_marks_average := all_marks_average / pupils;
WriteLn('Результат: ', all_marks_average:2:2);
ReadLn;
<span>End.</span>
<span>2 изображений, выводимых на экран цветного дисплея.</span>