#include <iostream> #include <cstdint> using namespace std; // Write your code here void compute(int a,int b,int &s , int& p) { // Write your code here s = a+b; p = a*b; } int main() { int16_t a, b; cin >> a >> b; int32_t sum = 0, product = 0; compute(a, b, sum, product); cout << sum << " " << product; return 0; }
Test Cases
Test Results
Input
3 4
Expected Output
7 12