At last!
You have a switch with cases for 1,2,3,4 and 5. You enter 70, which is not 1,2,3,4 or 5, so it executes the default. That's how switch is supposed to work.
JamesCherrill
4,334
Most Valuable Poster
Moderator
Featured Poster
gh.fuz
0
Newbie Poster
JamesCherrill
4,334
Most Valuable Poster
Moderator
Featured Poster
gh.fuz
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
jwenting
1,649
duckman
Team Colleague
JamesCherrill
4,334
Most Valuable Poster
Moderator
Featured Poster
scortip
0
Newbie Poster
JamesCherrill
4,334
Most Valuable Poster
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.