Created
March 13, 2019 10:20
-
-
Save angelabauer/8d7e177b12ad265e7f4979ae05ed8f86 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() { | |
| //loveCalculator1(); | |
| //loveCalculator2(); | |
| } | |
| void loveCalculator1() { | |
| int loveScore = Random().nextInt(100) + 1; | |
| print(loveScore); | |
| if (loveScore > 70) { | |
| print('You love each other like Kanye loves Kanye.'); | |
| } | |
| if (loveScore > 30 && loveScore <= 70) { | |
| print('You like each other a bit.'); | |
| } | |
| if (loveScore <= 30) { | |
| print('You don\'t like eachother very much'); | |
| } | |
| } | |
| void loveCalculator2() { | |
| int loveScore = Random().nextInt(100) + 1; | |
| print(loveScore); | |
| if (loveScore > 70) { | |
| print('You love each other like Kanye loves Kanye.'); | |
| } | |
| else if (loveScore > 30 ) { | |
| print('You like each other a bit.'); | |
| } | |
| else { | |
| print('You don\'t like eachother very much'); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment