#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.")); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter