Case function in C
Go to solution
Solved by Moonzy,
case (argument): things to do until break;
ie.
case a<b : print out "hello"; break;
so in your example, you're comparing variable 'y' to see if it's an character 'A', 'B', 'C', 'D', or 'F', you're not comparing it to see if the value is larger or smaller than certain things.
as for the rest of your program, no idea

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now