1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include<stdio.h> void main() { int age=24, income=1000; if(age>=18) { if(income<5000) printf("You are eligible to vote and are exempted from paying tax."); else printf("You are eligible to vote."); } else printf("You are not eligible to vote."); }
1
You are eligible to vote and are exempted from paying tax.