Сделал 1 Задание со списками

This commit is contained in:
AZEN-SGG 2024-10-04 10:43:43 +03:00
parent 5dbf4901b8
commit 632a718df1
71 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#include <stdio.h>
#include "tools.h"
#include "make_increasing.h"
/*
23 Task
Example:
1 2 3 4 5 - possible
2 1 3 5 4 - impossible
*/
int main(void) {
FILE * file = getFile();
if (file == NULL) return 1;
if (makeIncreasing(file) != TRUE) {
printf("No, it is impossible");
return 1;
} else printf("Yes, it is possible");
return 0;
}