2024-11-11 13:41:15 +04:00
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
|
|
|
|
|
//void print1_10() {
|
|
|
|
|
// int a = 1;
|
|
|
|
|
// do {
|
|
|
|
|
// printf(" %d", a);
|
|
|
|
|
// a += 1;
|
2024-11-11 13:42:45 +04:00
|
|
|
|
// } while (a <= 10);
|
|
|
|
|
//}
|
2024-11-11 13:41:15 +04:00
|
|
|
|
//
|
|
|
|
|
//void print10_1() {
|
|
|
|
|
// int a = 10;
|
|
|
|
|
// do {
|
|
|
|
|
// printf(" %d", a);
|
|
|
|
|
// a -= 1;
|
|
|
|
|
// } while (a >= 1);
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//void odd() {
|
|
|
|
|
// int a = 1;
|
|
|
|
|
// int i = 0;
|
|
|
|
|
// do {
|
|
|
|
|
// printf(" %d", a);
|
|
|
|
|
// a += 2;
|
|
|
|
|
// i += 1;
|
|
|
|
|
// } while (i < 5);
|
|
|
|
|
//}
|
|
|
|
|
//void ptint100_10() {
|
|
|
|
|
// int a = 100;
|
|
|
|
|
// while (a >= 10) {
|
|
|
|
|
// printf(" %d", a);
|
|
|
|
|
// a -= 10;
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//void print1000_100() {
|
|
|
|
|
// int a = 1000;
|
|
|
|
|
// while (a >= 100) {
|
|
|
|
|
// printf(" %d", a);
|
|
|
|
|
// a -= 100;
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//void print1000_0() {
|
|
|
|
|
// int a = 1000;
|
|
|
|
|
// int b;
|
|
|
|
|
// printf("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>: ");
|
|
|
|
|
// scanf_s("%d", &b);
|
|
|
|
|
// while (a >= 0) {
|
|
|
|
|
// printf(" %d", a);
|
|
|
|
|
// a -= b;
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//void main() {
|
|
|
|
|
// SetConsoleCP(1251);
|
|
|
|
|
// SetConsoleOutputCP(1251);
|
|
|
|
|
// int n;
|
|
|
|
|
// do {
|
|
|
|
|
// printf("\n");
|
|
|
|
|
// printf("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n");
|
|
|
|
|
// printf("1: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 1 <20><> 10\n");
|
|
|
|
|
// printf("2: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 10 <20><> 1\n");
|
|
|
|
|
// printf("3: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 1\n");
|
|
|
|
|
// printf("11: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 100 <20><> 10 <20> <20><><EFBFBD><EFBFBD><EFBFBD> 10\n");
|
|
|
|
|
// printf("12: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 1000 <20><> 100 <20> <20><><EFBFBD><EFBFBD><EFBFBD> 100\n");
|
|
|
|
|
// printf("20: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 1000 <20><> 100 <20> <20><><EFBFBD><EFBFBD><EFBFBD> N\n");
|
|
|
|
|
// printf("\n");
|
|
|
|
|
// printf("0: <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
// scanf_s("%d", &n);
|
|
|
|
|
//
|
|
|
|
|
// switch (n) {
|
|
|
|
|
// case 1:
|
|
|
|
|
// print1_10();
|
|
|
|
|
// break;
|
|
|
|
|
// case 2:
|
|
|
|
|
// print10_1();
|
|
|
|
|
// break;
|
|
|
|
|
// case 3:
|
|
|
|
|
// odd();
|
|
|
|
|
// break;
|
|
|
|
|
// case 11:
|
|
|
|
|
// ptint100_10();
|
|
|
|
|
// break;
|
|
|
|
|
// case 12:
|
|
|
|
|
// print1000_100();
|
|
|
|
|
// break;
|
|
|
|
|
// case 20:
|
|
|
|
|
// print1000_0();
|
|
|
|
|
// break;
|
|
|
|
|
// default:
|
|
|
|
|
// printf("<22><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>!!!!!!\n");
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// } while (n != 0);
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD> 10
|
|
|
|
|
//void Task1() {
|
|
|
|
|
// printf("Task1() START\n");
|
|
|
|
|
// int i, j;
|
|
|
|
|
// int n, m;
|
|
|
|
|
// printf("n = ");
|
|
|
|
|
// scanf_s("%d", &n);
|
|
|
|
|
// printf("m = ");
|
|
|
|
|
// scanf_s("%d", &m);
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// i = 1;
|
|
|
|
|
// do {
|
|
|
|
|
// j = 1;
|
|
|
|
|
// do {
|
|
|
|
|
// printf("%d ", i * 10 + j);
|
|
|
|
|
// j += 1;
|
|
|
|
|
// } while (j <= m);
|
|
|
|
|
//
|
|
|
|
|
// printf("\n");
|
|
|
|
|
// i += 1;
|
|
|
|
|
// } while (i <= n);
|
|
|
|
|
// printf("Task1() FINISH\n");
|
|
|
|
|
//
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//void Task2() {
|
|
|
|
|
// printf("Task2() START\n");
|
|
|
|
|
// int i = 1, j;
|
|
|
|
|
// do {
|
|
|
|
|
// j = 1;
|
|
|
|
|
// do {
|
|
|
|
|
// printf(" %3d", i * j);
|
|
|
|
|
// j++;
|
|
|
|
|
//
|
|
|
|
|
// } while (j <= 10);
|
|
|
|
|
//
|
|
|
|
|
// printf("\n");
|
|
|
|
|
// i++;
|
|
|
|
|
//
|
|
|
|
|
// } while (i <= 10);
|
|
|
|
|
// printf("Task2() FINISH\n");
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//void Task3() {
|
|
|
|
|
// printf("Task3() START\n");
|
|
|
|
|
//
|
|
|
|
|
// printf("Task3() FINISH\n");
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//void main() {
|
|
|
|
|
// SetConsoleCP(1251);
|
|
|
|
|
// SetConsoleOutputCP(1251);
|
|
|
|
|
// int n;
|
|
|
|
|
// do {
|
|
|
|
|
// printf("\n");
|
|
|
|
|
// printf("\n");
|
|
|
|
|
// printf("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n");
|
|
|
|
|
// printf("1: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1 (i * 10 + j)\n");
|
|
|
|
|
// printf("2: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2 (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)\n");
|
|
|
|
|
// printf("3: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 3(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)\n");
|
|
|
|
|
// printf("\n");
|
|
|
|
|
// printf("0: <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
// scanf_s("%d", &n);
|
|
|
|
|
//
|
|
|
|
|
// switch (n) {
|
|
|
|
|
// case 1:
|
|
|
|
|
// Task1();
|
|
|
|
|
// break;
|
|
|
|
|
// case 2:
|
|
|
|
|
// Task2();
|
|
|
|
|
// break;
|
|
|
|
|
// case 3:
|
|
|
|
|
// Task3();
|
|
|
|
|
// break;
|
|
|
|
|
// default:
|
|
|
|
|
// printf("<22><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>!!!!!!\n");
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// } while (n != 0);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
int x = 10;
|
|
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
|
printf("Hi");
|
|
|
|
|
}
|