// // main.c // T2_Ej11 // // Created by Mari Paz Guerrero Lebrero on 21/1/15. // Copyright (c) 2015 Mari Paz Guerrero Lebrero. All rights reserved. // #include #include int Cociente(int a, int b); int main() { int a, b; printf("Introduzca dos numeros: "); scanf("%d%d", &a, &b); printf("El cociente de %d y %d es: %d\n", a, b, Cociente(a, b)); return 0; } int Cociente(int a, int b) { if(a < b) return 0; else return 1 + Cociente(a - b, b); }