DEV Community

Discussion on: Daily Challenge #281 - Area or Perimeter

Collapse
 
hasobi profile image
Hasobi

It's quite simple, check whether a=b if it's true return a*b if it's not, return (a+b)*2.