diff options
feat(Week03): Add exercises and solutions
1 files changed, 10 insertions, 0 deletions
| -rw-r--r-- | Week03/Exercise08.cpp | 10 |
diff --git a/Week03/Exercise08.cpp b/Week03/Exercise08.cpp new file mode 100644 index 0000000..8f655cf --- /dev/null +++ b/Week03/Exercise08.cpp @@ -0,0 +1,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; +} |
