I need to turn this code into a case switch statement. Tried several times to change it but no luck. Anybody can help and point me to the right direction?
int leap (int year)
if ((year%4==0) && (year%100!=0) || (year%400==0))