ELIGIBLE FOR VOTE OR NOT

#include<stdio.h>
#include<conio.h>
void main()
{
 char nm[20];
 int age;
 clrscr();
 printf("\nEnter Name : ");
 scanf("%s",&nm);
 printf("\nEnter Age : ");
 scanf("%d",&age);
  if(age>=18)
  {
   printf("\n%s is Eligible
 for Vote",nm);
  }
  else
  {
   printf("\n%s is Not 
  Eligible for Vote",nm);
  }
 getch();

}
Output

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II :   1) Which of the following is the extension of Not...