+ 1
And the program should display'you can vote ' but if less than 18 the program should display 'you can't vote '
2 Antworten
+ 5
For others to better help you...any way you can combine this question with the first part?
https://www.sololearn.com/Discuss/197110/?ref=app
+ 4
input name
input DoB
age is todays date - DoB
if age >= 18, print you can vote
else print you can't vote