C ternary opretour

 #include<stdio.h>

int main()

{

    int age;

    printf("Enter your yage:");

    scanf("%d",&age);

    age>=18? printf("voter"):printf("not voter");

    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