diff --git a/prog.c b/prog.c deleted file mode 100644 index 1f46285..0000000 --- a/prog.c +++ /dev/null @@ -1,18 +0,0 @@ -int max(int * tab, int size) { - int i = 0; - int max = 0; - while (i max) { - max = tab[i]; - } - i = i+1; - } - return max; -} - -int main() { - int tab[10] = {1,2,3,4,5,6,7,8,9,0}; - printf(max(tab, 10)); -}