jeudi 31 mai 2018

convert a if statement to a swicth

Could this program be switch to a switch statement?

if((Month*Day)==Year){
System.out.println("The date is magic");
}
else{
System.out.println("The date is not magic");
}

Aucun commentaire:

Enregistrer un commentaire