#include <iostream>
int main()
{
double x, y;
while (true)
{
std::cout << "x y » ";
std::cin >> x >> y;
std::cout << (x*y>1 ? "No": "Yes") << std::endl;
}
}
Ещё вариант: #include <cmath>
#include <iostream>
int main()
{
double x, y;
while (true)
{
std::cout << "x y » ";
std::cin >> x >> y;
std::cout << ((fabs(x)<=1 && fabs(y)<=1)
? "Yes": "No") << std::endl;
}
}
#include <cmath>
#include <iostream>
int main() {
std::cout << "x, y? ";
double x, y;
std::cin >> x >> y;
puts(fabs(x * y) <= 1.0 ? "yes" : "no");
}