From bdc783c0609cea84725d4797bd23f3edf05bbafb Mon Sep 17 00:00:00 2001 From: Artem Date: Mon, 25 Nov 2024 18:18:44 +0400 Subject: [PATCH] add laba 32 --- main.c | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 52794b1..0572e40 100644 --- a/main.c +++ b/main.c @@ -1,3 +1,24 @@ -void main() { - -} \ No newline at end of file +/ задача 6 +//#include +//#include +// +//int main() { +// int price; +// SetConsoleCP(1251); +// SetConsoleOutputCP(1251); +// printf("Введите стоимость ваз 2114:"); +// scanf_s("%d", &price); +// +// if (price < 120000) { +// printf("Дешево"); +// } +// if ((120000 <= price) && (price < 180000)) { +// printf("Нормально"); +// } +// if ((180000 <= price) && (price < 230000)) { +// printf("Дорого"); +// } +// if (price >= 230000) { +// printf("Ужас как дорого"); +// } +//} -- 2.25.1