#include <stdio.h>

int main() {
    int h=0;
    int a;
    int b;
    while (1) {
        if (h++>0) {
            printf("  voulez vous une autre table ? \n    1 pour oui et 0 pour non\n");
            scanf("%d\n",&b);
            if (b==0)
                return 0;
        }
        printf("\n  Quel entier voulez vous multiplier ? \n");
        scanf("%d\n",&a);
        scanf("%d\n",&b);
        int r=a*b;
        if (a*b>0) 
            printf("le produit est positif\n");
        else {
            if (a*b<0) 
                printf("le produit est négatif\n");
            else 
                printf("le produit est nul\n");
            
        }
    }
}

Embed on website

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