This commit is contained in:
2026-05-26 15:01:50 +02:00
parent 6a948ffe9f
commit a645291f8b
55 changed files with 1337 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
#include <iostream>
template <typename T> T srednia(T a, T b) { return (a + b) / 2; }
int main() {
std::cout << srednia(3, 4) << std::endl; // co się wypisze? 3
std::cout << srednia(3.0, 4.0) << std::endl; // co się wypisze? 3.5
std::cout << srednia<double>(3, 4.0) << std::endl; // 3.5
}