Dlaczego się to nie kompiluje??
#include <stdio.h>
#include <stdlib.h>
int wynik;
int funkcja(int, int);
int main(void)
{
int x, y;
printf("podaj liczbe:\n");
scanf("%d", &x);
fflush(stdin);
printf("podaj liczbe:\n");
scanf("%d", &y);
fflush(stdin);
printf("NWD: %d", funkcja(x, y));
putchar('\n');
system("pause");
}
int funkcja(int a, int b, int wynik = 0)
{
int z;
if(b != 0)
{
z = a % b;
a = b;
b = z;
wynik = a;
funkcja(a, b, wynik);
}
return wynik;
}