mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-09-07 20:20:39 +02:00
10 lines
269 B
C++
10 lines
269 B
C++
bool czyParzysta(int n);
|
|
int poleProstokata(int a, int b);
|
|
double srednia(int a, int b, int c);
|
|
|
|
bool czyParzysta(int n) { return n % 2 == 0; }
|
|
|
|
int poleProstokata(int a, int b) { return a * b; }
|
|
|
|
double srednia(int a, int b, int c) { return (double)(a + b + c) / 3; }
|