C++
#include <iostream>
int main() {
std:: cout << "input two numbers:" << std:: endl;
int a, b;
std:: cin >> a >> b;
int result = ( a > b ) ? ( a - b ) : ( a + b );
std:: cout << "result = " << result << std:: endl;
return 0;
}
C++
#include <iostream>
int main() {
std:: cout << "input two numbers:" << std:: endl;
int a, b;
std:: cin >> a >> b;
int result = ( a > b ) ? ( a - b ) : ( a + b );
std:: cout << "result = " << result << std:: endl;
return 0;
}