C code checking voting categeri for use age

 #include<stdio.h>

int main()

{

    int age;

     printf("enter number:");

     scanf("%d",&age);

     

    if (age>18)

    {

        printf("you can give your vote\n");

    }


    else

    {

        printf("you can not give vote\n");

     }


     printf("thankyou");

     

    return 0;


}

Comments

Popular posts from this blog

HERE IS ALL THE C CODE I CREATED

C sum all values output valus using for loop