Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main() {
- double a, b;
- std::cin >> a >> b;
- if (a == b) {
- std::cout << "The orange is divided into two equal parts";
- }
- else if (a > b) {
- std::cout << "Cut off " << a - b << " from the first part";
- }
- else
- std::cout << "Cut off " << b - a << " from the second part";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement