Поскольку не указан язык программирования, приведу код программы на языке С++:
#include <iostream>
using namespace std;
int main(){
int one, two, three;
cin >> one >> two >> three;
cout << "Average height: " << (one+two+three)/3 << endl;
return 0;
}
function sum(i, n: <em>integer</em>): <em>boolean</em>;
var
a, b: <em>integer</em>;
begin
a := i;
repeat
b := b + a mod 10;
a := a div 10;
until (a = 0);
sum := (b = n);
end;
var
n, i, k: <em>integer</em>;
begin
readln(n, k);
for i := 1 to k do
if sum(i, n) then
writeln(i);
end.
512 байт= 4096 бит=0,5 Кбайт