Syntax:
switch(expression){
//cases
case 1:
//body
break;
case 2:
//body
break;
case n:
//body
break;
default: //default is at the end of all cases
//body
}
Q: Find 3 digit Armstrong number?
Armstrong number is a number that is equal to the sum of cubes of its digits.
For example 0, 1, 153, 370, 371 and 407 are the Armstrong numbers.
Q: Enter number and return boolean value whether it is prime number r not?