#include<stdio.h> int main() { int num; printf("Enter your age: "); scanf("%d", &num); if (num <18) { printf("you are not eligible for voting"); } else { printf("You can vote!!"); } return 0; }
Enter your age:25 You can vote!!
#include<stdio.h>
All the definintions and prototypes of function defined in this file are available in the current program.#include<conio.h>
Trending Tutorials