#include <stdio.h>

int main() {
    int n = 10;           // dividendo
    int q = 3;            // divisore
    
    int p = n / q;        // risultato divisione intera
    int r = n % q;        // resto divisione intera

    printf("divisione intera tra %d e %d:\n",n,q);
    printf("ris = %d\n",p); 
    printf("res = %d\n",r); 
}

Embed on website

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