From 374b72b91303f0566a37eb6fd739c31eb20a4a18 Mon Sep 17 00:00:00 2001
From: My Name
Date: Wed, 6 Nov 2024 13:57:25 +0400
Subject: [PATCH] Revert "second commit"
This reverts commit 485f080cdb8b63fc8f5055397c3ab1be0e99e833.
---
Project2/Project2/Source.cpp | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/Project2/Project2/Source.cpp b/Project2/Project2/Source.cpp
index fe717ef..ffdeeb6 100644
--- a/Project2/Project2/Source.cpp
+++ b/Project2/Project2/Source.cpp
@@ -1,6 +1,35 @@
#include
#include
+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() {
printf("Task2() START\n");
@@ -20,7 +49,11 @@ void Task2() {
printf("Task2() FINISH\n");
}
+void Task3() {
+ printf("Task3() START\n");
+ printf("Task3() FINISH\n");
+}
void main() {
SetConsoleCP(1251);