#include <stdio.h>
//to check adult or not 
int main() {
    int age;
    printf("enter age\n");
    scanf("%d",&age);
    if(age>18){
        printf("adult\n");
    }else{
        printf("not an adult \n");
    }
    return 0;
}

Embed on website

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