What is the output of code corresponding to the following program segment if Age = 18?
```
If Age >= 18 Then
Write “You are eligible to vote.”.
Else
Set Vote = Age - 18
Write “You can vote in “ + Vote + “years.”.
End If```
a. You are eligible to vote.
b. You can vote in 18 years.
c. You are eligible to vote.
You can vote in 18 years.
d. You can vote in 0 years.
A
Computer Science & Information Technology
You might also like to view...
A newsgroup is an example of a discussion board list
Indicate whether the statement is true or false
Computer Science & Information Technology
Which of the following is not a hardware component?
a) Main memory b) Central processing unit c) Operating system d) Keyboard
Computer Science & Information Technology