From eb8b89e3622f5a77027fe88930b6d38cfe73b774 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 18 Oct 2025 14:40:29 +0300 Subject: feat(Week03): Add exercises and solutions --- Week03/Exercise08.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Week03/Exercise08.cpp (limited to 'Week03/Exercise08.cpp') 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 + +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; +} -- cgit v1.3.1-23-gd82d