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