#include <stdio.h>

int main() 
{
    int b,g;
    scanf("%d",&b);
    scanf("%d",&g);
    if(b>21 & g>18)
    {
        printf ("they both are eligible for marriage");
    }
    else
    {
       printf ("they both 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: