Header Ads Widget

Responsive Advertisement

If else condition

 #include<stdio.h>

int main ()

{

    int age;

    printf("Enter the age: ");

    scanf("%d",&age);


    printf("You entered %d age of own\n",age);

    if(age>=18)

    {

        printf("You can infuse the vote!");

        

    }

    else

    {

        printf("You can not infuse the vote!");

    }


    return 0;

}

Post a Comment

0 Comments