From 7b1d1b87619de0b16709639c3bd8747e65d5e955 Mon Sep 17 00:00:00 2001 From: Evgeni01106 Date: Mon, 18 Nov 2024 09:40:29 +0400 Subject: [PATCH] 1234 --- 3лаба7.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 3лаба7.c diff --git a/3лаба7.c b/3лаба7.c new file mode 100644 index 0000000..22999e0 --- /dev/null +++ b/3лаба7.c @@ -0,0 +1,29 @@ +#include +#include +void main() +{ + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + + int v; + printf("Ââåäèòå ñêîðîñòü åæà â êì/÷="); + scanf_s("%d", &v); + if (v < 3) { + printf("ñêîðîñòü åæà î÷åíü ìåäëåííàÿ"); + } + if (v >= 3 && v < 5) { + printf("ñêîðîñòü åæà ìåäëåííàÿ"); + } + if (v >= 5 && v < 9) { + printf("åæ äâèæåòñÿ íîðìàëüíî"); + } + if (v >= 9 && v < 14) { + printf("åæ äâèæåòñÿ áûñòðî"); + } + if (v >= 14 && v < 25) { + printf("åæ äâèæåòñÿ î÷åíü áûñòðî"); + } + if (v >= 25) { + printf("åæ äâèæåòñÿ ìãíîâåííî"); + } +} \ No newline at end of file