dbInya
unknown
c_cpp
2 years ago
328 B
8
Indexable
#include <iostream>
#include <string>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
if (a >= -100 and a <= 100 and a != 0 and b >= -100 and b <= 100 and b != 0)
{
if (b % 2 == 0 and a % 2 != 0)
{
cout << b - a;
}
else cout << "No";
}
else
{
cout << "Ne v diapazone";
}
}Editor is loading...