17 lines
325 B
C
17 lines
325 B
C
#include <stdio.h>
|
|
#include "get_file.h"
|
|
#include "max_difference.h"
|
|
|
|
/*
|
|
36 Çàäà÷à
|
|
*/
|
|
|
|
int max(int first, int second);
|
|
int maxDifference(FILE * file);
|
|
|
|
int main(void) {
|
|
FILE * file = getFile();
|
|
if (file == NULL) return -1;
|
|
printf("Maximum difference between elements is %d", maxDifference(file));
|
|
return 0;
|
|
}
|