re: Daily Challenge #75 - Set Alarm VIEW POST

FULL DISCUSSION
 

In C#

Public bool setalarm(bool employed = false, bool vacation = false){
return !vacation && employed;
}

 

nicer with some formatting:

Public bool setalarm(bool employed = false, bool vacation = false){
  return !vacation && employed;
}

Interresting of you use vacation first and your use of default values 😄

code of conduct - report abuse