#include <iostream>
#include <cstdint>
using namespace std;

// Write your code here
void compute(int16_t& x, int16_t& y, int32_t& sum1, int32_t& product1) {
    // Write your code here
    sum1 = x+y;
    product1 = x*y;
}

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;
}

Solving Approach

 

 

 

 

 

 

Upvote
Downvote
Loading...

Input

3 4

Expected Output

7 12