DEV Community

loading...

Discussion on: Daily Challenge #281 - Area or Perimeter

Collapse
hasobi profile image
Hasobi Ro'id Radityo

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