Compare commits

...

2 Commits

Author SHA1 Message Date
994e60c638 789 2024-10-31 02:25:58 +04:00
17f57192f5 456 2024-10-31 02:25:28 +04:00

View File

@ -43,32 +43,27 @@ void Task3() {
printf("Task3() FINISH\n");
}
void main() {
void main()
{
int odin, dwa, max, min;
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
int n = -1;
do {
printf("\n");
printf("\n");
printf("Âûáåğèòå íóæíóş âàì îïåğàöèş:\n");
printf("1: Çàäà÷à 1 (i * 10 + j)\n");
printf("2: Çàäà÷à 2 (Òàáëèöà Ïèôàãîğà)\n");
printf("3: Çàäà÷à 3 (Ğèñóíîê ïî âàğèàíòó)\n");
printf("\n");
printf("0: Âûéòè èç ïğîãğàììû\n");
scanf_s("%d", &n);
switch (n) {
case 1:
Task1();
break;
case 2:
Task2();
break;
case 3:
Task3();
break;
}
} while (n != 0);
}
123456
printf("Ďĺđâîĺ ÷čńëî - ");
scanf_s("%d", &odin);
printf("Âňîđîĺ ÷čńëî - ");
scanf_s("%d", &dwa);
if (odin > dwa) {
min = dwa;
max = odin;
}
else {
min = odin;
max = dwa;
}
printf("Áîëüřĺĺ ÷čńëî - %d\n", max);
printf("Ěĺíüřĺĺ ÷čńëî - %d", min);
}