Сделал 22 Задание Массивов

This commit is contained in:
AZEN-SGG 2024-10-09 15:51:25 +03:00
parent c3182c8c24
commit 5852a9f034
23 changed files with 99 additions and 31 deletions

19
WorkingArrays/13Ex/main.c Normal file
View 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 (equal(numbers)) printf("They are different");
else printf("They are the same");
free(numbers);
return 0;
}