From 7881119e0914b9207568918fcf868eea84ef3d78 Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Sat, 28 Nov 2020 01:45:44 +0200 Subject: sem 8 --- Sem. 03/Tasks and Solutions/02. Speed check.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Sem. 03/Tasks and Solutions/02. Speed check.cpp (limited to 'Sem. 03/Tasks and Solutions/02. Speed check.cpp') diff --git a/Sem. 03/Tasks and Solutions/02. Speed check.cpp b/Sem. 03/Tasks and Solutions/02. Speed check.cpp new file mode 100644 index 0000000..4660382 --- /dev/null +++ b/Sem. 03/Tasks and Solutions/02. Speed check.cpp @@ -0,0 +1,19 @@ +#include +using namespace std; + +int main() +{ + double speed; + cin >> speed; + + if (speed <= 10) + cout << "Slow" << endl; + else if (speed < 50) + cout << "Average" << endl; + else if (speed < 150) + cout << "Fast" << endl; + else if (speed < 1000) + cout << "Ultra fast" << endl; + else + cout << "Extremely fast" << endl; +} \ No newline at end of file -- cgit v1.3.1-26-gb76a