Chotti Bacchi Checker using Ternary Operator in C language

PHOTO EMBED

Tue Apr 11 2023 16:37:04 GMT+0000 (Coordinated Universal Time)

Saved by @UpgraderBoy #c

#include<stdio.h>
#include<conio.h>

void main(){
    int age,x=1;

while (x=1)
{
    printf("\n Plz., enter your age, if you are not a chhote bacchi = ");
    scanf("%d",&age);
    age>=18?(printf("You are eligible for vote.")):(printf("Chhote bacchi ho kya."));
}
}
content_copyCOPY