Compare commits

...

2 Commits

Author SHA1 Message Date
My Name
96bb7449f7 third commit 2024-11-06 13:44:07 +04:00
My Name
8e462c809e second commit 2024-11-06 13:43:43 +04:00

View File

@ -1,35 +1,6 @@
#include <stdio.h> #include <stdio.h>
#include <Windows.h> #include <Windows.h>
void Task1() {
printf("Task1() START\n");
int n, m;
printf("n, m = \n");
scanf_s("%d%d", &n, &m);
if (n > 9 || m > 9) {
printf("Çíà÷åíèÿ n è m äîëæíû áûòü íå áîëüøå 9.\n");
return;
}
int i = 1;
do {
int j = 1;
do {
printf("%d ", i * 10 + j);
j++;
} while (j <= m);
printf("\n");
i++;
} while (i <= n);
printf("Task1() FINISH\n");
}
void Task2() { void Task2() {
printf("Task2() START\n"); printf("Task2() START\n");
@ -49,11 +20,7 @@ void Task2() {
printf("Task2() FINISH\n"); printf("Task2() FINISH\n");
} }
void Task3() {
printf("Task3() START\n");
printf("Task3() FINISH\n");
}
void main() { void main() {
SetConsoleCP(1251); SetConsoleCP(1251);