Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int dov(int x,int y);
- int main(){
- int input,divs;
- printf ("Ingrese un número para calcular su division entera: \n");
- scanf ("%d", &input);
- printf ("Ingrese el divisor:\n");
- scanf ("%d", &divs);
- printf ("La division es %d\n", dov(input,divs));
- }
- int dov(int x,int y){
- if ((x-y)<0) return 0;
- else return dov(x-y,y)+1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement