mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-09-07 20:20:39 +02:00
15 lines
355 B
C++
15 lines
355 B
C++
#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;
|
|
}
|