Create a program that receives the age of a user and determine whether he/she can vote or not. Assume the voting age to be 20. Create a defining diagram before developing the algorithm.​

Answer :

Answer:

in what language?

python

```

while (1):

x = eval(input("What is your age?"))

if x>=20:

print("You can vote")

else :

print("You can't vote")

```

Explanation:

you get the user input for his age then you do an if statement to check if it is less or greater than 20 and print yes id it is =20 or bigger than 20 else you print no

Other Questions