Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
374 B
1
Indexable
Never
#include <iostream>
using namespace std;

int sum(int a, int b) {
    return a + b;
}
int dif(int a, int b) {
    return a - b;
}
int mul(int a, int b) {
    return a * b;
}
int divi(int a, int b) {
    return a / b;
}

int main()
{
    int a, b;
    cin >> a >> b;
    cout << sum(a, b) << " " << dif(a, b) << " " << mul(a, b) << " " << divi(a, b);
}
Leave a Comment