Skip to content

Sana-Shah-een/SwitchStatement-If-Statement-Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Switch Statement in Java

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
}

ArmStrong Number

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.

IsPrime Number

Q: Enter number and return boolean value whether it is prime number r not?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages