Skip to content

Instantly share code, notes, and snippets.

@angelabauer
Created March 13, 2019 10:20
Show Gist options
  • Save angelabauer/8d7e177b12ad265e7f4979ae05ed8f86 to your computer and use it in GitHub Desktop.
Save angelabauer/8d7e177b12ad265e7f4979ae05ed8f86 to your computer and use it in GitHub Desktop.
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