Created
February 12, 2019 15:36
-
-
Save angelabauer/d187e6ed6f85c6972e1bc7effe8fe6e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
void main() { | |
//Full function | |
// double bmiCalculator(double height, double weight) { | |
// final bmi = weight / pow(height, 2); | |
// return bmi; | |
// } | |
//Fat arrow function | |
// bmiCalculator (double height, double weight) => weight / pow(height, 2); | |
// print(bmiCalculator(1.8, 63.5)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment