Computer Science, asked by Smarty81491, 7 hours ago

diya was born on 2002.write a c program to accept her age and print whether she is eligible for voting.(using ternary operator

Answers

Answered by BestStudentSince2004
0

int yob = 2002;

if (2021 - yob < 18 && yob > 2021) {

   printf("Too small for voting");

} else {

  printf("You can vote");

}

Similar questions