Funkcja Suma() zwaracjąca wartość bez paramertów
#include<iostream>
#include<cstdlib>
using namespace std;
int Suma()
{
int x,y;
cout << “podaj x=”;
cin >> x;
cout << “podaj y=”;
cin >> y;
return x+y;
}
int main()
{
cout <<“wynik=”<< Suma();
cout << “\n\n”;
system(“pause”);
}