Website Summary Files Commits Branches @commit @diff @stats
path: root / Week03 / Exercise08.cpp
blob: 8f655cfd947e914f4b7d2e79a2ba60de18f24eba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <iostream>

int main() {
    double a, b, c, d, x;
    std::cin >> a >> b >> c >> d >> x;

    std::cout << (a * x * x * x + b * x * x + c * x + d == 0);

    return 0;
}