Pascal:
var x,y:real;
begin
write ('X = ');
readln(x);
write ('Y = ');
readln(y);
writeln ('Summa: ',x+y);
writeln ('Srednee: ',(x+y)/2);
readln;
end.
C++:
#include
using namespace std;
int main()
{
float x,y;
cout <<"X = ";<br> cin >>x;
cout <<"Y = ";<br> cin >>y;
cout <<"Summa: " <<x+y <<endl<br> <<"Srednee: " <<(x+y)/2 <<endl;<br> return 0;
}