Skip to content

Adhouma/Day-of-the-week-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Day-of-the-week-challenge

/**
 * Write a method with the name printDayOfTheWeek that has one parameter of type int and name it day.
 * The method should not return any value
 * Using a switch statement print "Sunday", "Monday", ... , "Saturday" 
 * if the int parameter "day" is 0, 1, ... , 6 respectively, otherwise it should print "Invalid day".
 * 
 * BONUS
 * Write a second solution using if then else, instead of using switch.
 */

Releases

No releases published

Packages

No packages published

Languages