#include <iostream>class Division
{
public:
Division()
int a{}, b{};
std::cin >> a >> b;
if (a > b) {
std::cout << a - b << std::endl;
}
else if (b > a) {
std::cout << b - a << std::endl;
else {
std::cout << a * b << std::endl;
};
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
class Division
{
public:
Division()
{
int a{}, b{};
std::cin >> a >> b;
if (a > b) {
std::cout << a - b << std::endl;
}
else if (b > a) {
std::cout << b - a << std::endl;
}
else {
std::cout << a * b << std::endl;
}
}
};