Подпрограммы (Функции)

Подпрограммы (Функции)

int a,b,c;

void loop()

{

a = 2; b = 2;

c = sum(a,b);

}

 

int sum(int x, int y)

{

int z = x + y;

return z;

}

Leave a Reply

Your email address will not be published. Required fields are marked *