Сделал 1 Задание со списками
This commit is contained in:
parent
5dbf4901b8
commit
632a718df1
71 changed files with 106 additions and 0 deletions
21
ProcessingSequences/22Ex/main.c
Normal file
21
ProcessingSequences/22Ex/main.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue