#include <stdio.h>

int main() {
    int numero;

    printf("Digite um número qualquer: ");
    scanf("%d", &numero);

    // Verifica se o resto da divisão por 2 é diferente de zero (ímpar)
    if (numero % 2) {
        printf("O número %d é ímpar.\n", numero);
    } else {
        printf("O número %d é par.\n", numero);
    }

    return 0;
}

Embed on website

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