Сделал 13 усовершенствованную с иным заданием
This commit is contained in:
parent
5852a9f034
commit
3f5c6299fc
11 changed files with 146 additions and 5 deletions
19
WorkingArrays/13ExDeluxe/main.c
Normal file
19
WorkingArrays/13ExDeluxe/main.c
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include <stdio.h>
|
||||
#include "tools.h"
|
||||
#include "equal.h"
|
||||
|
||||
int main(void) {
|
||||
double * numbers;
|
||||
FILE * file = getFile();
|
||||
if (file == NULL) return 1;
|
||||
|
||||
numbers = getList(file);
|
||||
if (numbers == NULL) return 1;
|
||||
|
||||
if (canFixArray(numbers)) printf("It can't be fixed!");
|
||||
else printf("It is possible to make them equal!");
|
||||
|
||||
free(numbers);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue