Skip to content

Instantly share code, notes, and snippets.

@vinod1988
Last active May 4, 2020 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinod1988/07ac067c26279e9d288e75e04966d4ed to your computer and use it in GitHub Desktop.
Save vinod1988/07ac067c26279e9d288e75e04966d4ed to your computer and use it in GitHub Desktop.
import 'dart:math';
void main() {
loveCalculator();
}
void loveCalculator() {
var loveScore = Random().nextInt(100)+1;
print(loveScore);
if( loveScore > 75) {
print('You like each other like vinod and angelina');
}
else if(loveScore > 50 && loveScore < 70) {
print('You like eacher');
}
else {
print('You don\'t like each other');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment