• + 0 comments
    here mine
    #include <cmath>
    #include <cstdio>
    #include <vector>
    #include <iostream>
    #include <algorithm>
    using namespace std;
    
    int tambah(int *a,int *b){
        int total =*a+*b;
        cout<<total<<endl;
        return total;
    }
    
    int kurang(int *a,int *b){
        int total =abs(*a-*b);
        cout<<total<<endl;
        return total;
    }
    
    int main() {````````````````
        int a;
        int b;
        cin>>a>>b;
        tambah(&a,&b);
        kurang(&a,&b);  
        return 0;
    }