Untitled
Anonymous
plain_text
11/12/2023 7:47 AM
508 B
19
Indexable
#include <iostream>
using namespace std;
int main()
{
int a, b, key;
cin >> a >> b;
if (a > b) {
if (b % 2 == 0) {
key = 1;
}
}
if (a < b){
if (a % 2 == 0) {
key = 1;
}
}
switch (key) {
case 1: {cout << "meow";
break;
}
default: cout << "bark";
}
}Editor is loading...