#include <stdio.h>

int main() {
    int x;
    printf("Please enter the x number:");
    printf("\r\n");
    scanf("%d", &x);
    
    printf("Number chosen: %d",x);
    printf("\r\n");
    
    printf("Result:\r\n");
    if(x <= 1) {
        printf("\tInfant\r\n");
    }
    else if (x <= 13) {
        printf("\tChild");
    }
    else if (x <= 19){
        printf("\tTeenager");
    }
    else {
        printf("\tAdult");
    }
    
    return 0;
}

Embed on website

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