#include <stdio.h>

int pari(int n) {
    if((n%2)==0 ) {
        return 1;
    } else {
        return 0;
    }
}

int main() {
    int n = 3;
    printf("n = %d è un numero ", n);
    if( pari(n) ) {
        printf("pari");
    } else {
        printf("dispari");
    }
}

Embed on website

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