You are viewing a single comment's thread. Return to all 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; }
Seems like cookies are disabled on this browser, please enable them to open this website
Pointer
You are viewing a single comment's thread. Return to all comments →