#include<stdio.h>
int main()
{
int age;
char gender;
    printf("enter the gender=%c",gender);
    scanf("%c",&gender);
     printf("enter the age=%d",age);
    scanf("%d",&age);
if(gender=="m"||gender=="M" && age>=21) 
{printf("YOU ARE ELIGIBLE FOR MARRIAGE");}
else
{printf("YOU ARE NOT ELIGIBLE FOR MARRIAGE");}
else if(gender=="f"||gender=="F" &&  age>=18)
{printf("YOU ARE ELIGIBLE FOR MARRIAGE");}
else
    {printf("YOU ARE NOT ELIGIBLE FOR MARRIAGE");}
    return 0;
    }

Embed on website

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