From da8dbeac3577a561ec3f97939ef89e20fa18cacf Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Tue, 5 Oct 2021 17:35:43 +0800 Subject: [PATCH] =?UTF-8?q?659.=20=E5=8C=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.acwing.com/problem/content/submission/code_detail/8063833/ --- AcWing/659/659.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 AcWing/659/659.cpp diff --git a/AcWing/659/659.cpp b/AcWing/659/659.cpp new file mode 100644 index 00000000..8fc0c07b --- /dev/null +++ b/AcWing/659/659.cpp @@ -0,0 +1,21 @@ +#include + +using namespace std; + +double x; + +int main() { + cin >> x; + if (0 <= x && x <= 25) { + cout << "Intervalo [0,25]" << endl; + } else if (25 < x && x <= 50) { + cout << "Intervalo (25,50]" << endl; + } else if (50 < x && x <= 75) { + cout << "Intervalo (50,75]" << endl; + } else if (75 < x && x <= 100) { + cout << "Intervalo (75,100]" << endl; + } else { + cout << "Fora de intervalo" << endl; + } + return 0; +}