Объяснение:
#include <iostream>
using namespace std;
int
main ()
{
int a, b;
cin >> a >> b;
if (a == b)
cout << a + 1 << " " << b + 2;
else
cout << a << " " << b;
return 0;
}
int main() {
if (a == b) {
a = a + 1;
b = b + 2;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Объяснение:
#include <iostream>
using namespace std;
int
main ()
{
int a, b;
cin >> a >> b;
if (a == b)
cout << a + 1 << " " << b + 2;
else
cout << a << " " << b;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a == b) {
a = a + 1;
b = b + 2;
}
cout << a << " " << b;
}