Find the division of two numbers recursively the executable only asks for the first digit and then closes without asking for the second digit.
#include<stdio.h>
int division (int a, int b);
int main (){
int a, b;
printf("Digite el primer numero");
scanf("%d", a);
printf("Digite el segundo numero");
scanf("%d", b);
printf("la division es %d ",division(a, b));
system("PAUSE");
return 0;
}
int division (int a, int b) {
if(b > a) {
return 0;
}
else {
return division(a-b, b) + 1;
}
}