//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.
#include <iostream>
#include <cmath>
using namespace std;
int main(){
for (float x=0; x<=5; x+=0.5)
cout<<"x = "<<x<<"; y = "<<sqrt(x)+pow(cos(x), 2)+1<<endl;
return 0;
}