1/main.c

48 lines
846 B
C
Raw Normal View History

2024-11-25 18:16:48 +04:00
include <stdio.h>
#include <Windows.h>
2024-11-19 15:48:25 +04:00
2024-11-25 18:16:48 +04:00
int main() {
int t;
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
scanf_s("%d", &t);
if (t < 10) {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}
if ((10 <= t) && (t < 15)) {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}
if ((15 <= t) && (t < 26)) {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}
if (t >= 26) {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}
2024-11-25 18:47:26 +04:00
}
2024-11-25 18:18:44 +04:00
/ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 6
//#include <stdio.h>
//#include <Windows.h>
//
//int main() {
// int price;
// SetConsoleCP(1251);
// SetConsoleOutputCP(1251);
// printf("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 2114:");
// scanf_s("%d", &price);
//
// if (price < 120000) {
// printf("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
// }
// if ((120000 <= price) && (price < 180000)) {
// printf("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
// }
// if ((180000 <= price) && (price < 230000)) {
// printf("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
// }
// if (price >= 230000) {
// printf("<22><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
// }
//}