Playground
#include <iostream> using namespace std; void reshi(int x, int y, int &sob, int &odz, int &mnoz) { sob = x+y; odz = x-y; mnoz = x*y; } int main() { int a = 30, b = 4; int s, o, m; reshi(a, b, s, o, m); cout << s << " " << o << " " << m << endl; //pechati '34 26 120' return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!