In the following code, the second while
is never executed, what is the reason?
int main(){
int a,b;
int producto=0;
int cociente=0;
printf ("Escribe primer número.\n");
scanf ("%d", &a);
printf ("Escribe segundo número.\n");
scanf ("%d", &b);
printf ("Suma: %d.\n", a+b);
printf ("Resta: %d.\n", a-b);
while (a!=0 && b!=0){
producto+=b;
a--;
}
printf ("Producto: %d.\n", producto);
while (a>= b){
a=a-b;
cociente++;
}
printf ("División: %d.\n", cociente);
return 0;
}