Answer the question
In order to leave comments, you need to log in
Is this technique acceptable?
Greetings. Task: you need to perform an action with numbers that are not in the "forbidden" list.
switch(value)
{
case 1,6,2,61,2,612,321: {} // отметаем запрещённые числа для этого действия
default:
{
// производим действие с любыми другими
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question