Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void wypisz()
- {
- cout << "Ta funkcja nie pobiera zadnych argumentow i nie zwraca zadnej wartosci. Jej jedynym zadaniem jest wypisanie tego napisu.\n";
- }
- void dzialanie(int a, int b)
- {
- cout << "Ta funkcja rowniez nic nie zwraca, ale pobiera dwie wartosci i wypisuje na ekran wynik ich dodawania:\n";
- cout << a << " + " << b << " = " << a + b << endl;
- }
- bool funkcja3()
- {
- cout << "Ta funkcja nie pobiera zadnych argumentow, ale zwraca domyslnie wartosc true.\n";
- return true;
- }
- double mnozenie(double x, double y)
- {
- return x * y;
- }
- int main()
- {
- wypisz();
- dzialanie(10, 12);
- cout << mnozenie(3.57, 2.17) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement