kadnichanskaya/населеие 1/FileName.c
2024-11-18 22:09:39 +04:00

26 lines
527 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <stdio.h>
#include <math.h>
#include <Windows.h>
/*Покупка новой иномарки в 2024 году*/
void main() {
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
int sum;
printf_s("Введите стоимость новой иномарки в тыс.руб (например, 2.600.000 = 2.600) = ");
scanf_s("%d", &sum);
if (sum <= 2000) {
printf_s("Дешево");
}
if (2000 < sum && sum <= 3000) {
printf_s("Нормально");
}
if (3000 < sum && sum <= 4000) {
printf_s("Дорого");
}
if (4000 < sum) {
printf_s("Очень дорого");
}
}
//printf_s("Hello world");