Computer Science, asked by proplayernpl, 7 months ago

write an algorithm to ask nationality and age and display whether he can vote or not.

Answers

Answered by zack1706
1

Answer:

okay hope it help but please give a follow

Explanation:

#include<stdio.h>

int main()

{

int a ;

//input age

printf("Enter the age of the person: ");

scanf("%d",&a);

//check voting eligibility

if (a>=18)

{

printf("Eigibal for voting");

}

else

{

printf("Not eligibal for voting\n");

}

return 0;

}

Similar questions