Challenge for Ruby Basics
Challenge
ab is considered powerful if (and only if) both of the following 2 conditions are met:
- ab >= 2 * b2
- ab >= (a*b)2
return true
if ab is powerful and false
otherwise.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.