#include <stdio.h>

int a = 3;
int b = 7;
int x;

int main() {

    for(x=1; x<=10; x++) {
        printf("x = %d\n",x);
        if((x > a) && (x < b)) {
            printf("%d sta in I(%d,%d)\n",x,a,b);
        } else {
            printf("%d non sta in I(%d,%d)\n",x,a,b);
        }
        if( x <= a ) {
            printf("%d sta in I(-inf,%d]\n",x,a);
        }
        if( x >= b ) {
            printf("%d sta in I[%d,+inf)\n",x,b);     
        }
        printf("-----------------\n");
    }
}

Embed on website

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