#include <stdio.h>

int main() {
    int A, B, C, D; // A=dividendo, B=divisore, C=risultato, D=resto.
    A = 9;
    B = 4;
    C = 0;
    while(A>=B); {
        A = A - B;
        C = C + 1;
    }
    D = A;
    printf("risultato C = %d\n", C);
    printf("resto D = %d", D);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: