- 0
create if...elseif statement Visual basic
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
VBScript on Windows is on the way out, here is what to do with your legacy VBA projects
By Usama Jawad96,
- 8 replies
- 0 views
-
- 3 replies
- 9 views
-
- 0 answers
- 3951 views
-
- 3 answers
- 4712 views
-
- 0 answers
- 2515 views
-
Question
soccerstar206
Write an If..ElseIf statement (or Select Case if you prefer) given the following:
decTicketPrice ?ticket price
intAge ?age of customer
If customer's age is less than 6, ticket price is Free
If customer's age is 6 to 12, ticket price is $3.50
If customer's age is 13 to 19, ticket price is $4.50
If customer's age is over 62, ticket price is $5.50
Otherwise, ticket price is $7.50
Link to comment
https://www.neowin.net/forum/topic/1172797-create-ifelseif-statement-visual-basic/Share on other sites
58 answers to this question
Recommended Posts