#include <stdio.h>
int main() {
int a,b,c,d; //a=dividendo, b=divisore, c=risultato, d=resto
a=11;
b=2;
c=0;
while(a>=b) {
a=a-b;
c=c+1;
}
d=a;
printf("risultato = %d\n", c);
printf("resto = %d", d);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: