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