You are viewing a single comment's thread. Return to all comments →
Little glitch for solving this question in shorter way but not using the pointer coding
int main() { int num1, num2; cin >> num1 >> num2; int funcT1 = num1 + num2; int funcT2 = num1 - num2; int funcT2a = abs(funcT2); cout << funcT1 << endl << funcT2a ; 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 →
Little glitch for solving this question in shorter way but not using the pointer coding
int main() { int num1, num2; cin >> num1 >> num2; int funcT1 = num1 + num2; int funcT2 = num1 - num2; int funcT2a = abs(funcT2); cout << funcT1 << endl << funcT2a ; return 0; }