This commit is contained in:
2026-03-10 16:27:53 +01:00
parent be6ca147f2
commit fd9be86bde
11 changed files with 132 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
#include <iostream>
using namespace std;
double srednia(int a, int b, int c) { return (double)(a + b + c) / 3; }
void wyzeruj(int &x) { x = 0; }
int main() {
cout << "Średnia 2,2,3 to: " << srednia(2,2 , 3) << endl;
int a = 6;
cout << "a = " << a << endl;
cout << "zerujemy" << endl;
wyzeruj(a);
cout << "a = " << a << endl;
}