Skip to content

Instantly share code, notes, and snippets.

@caadif
Last active June 21, 2022 04:34
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 caadif/c671c7edba5d33410934107b03be58fe to your computer and use it in GitHub Desktop.
Save caadif/c671c7edba5d33410934107b03be58fe to your computer and use it in GitHub Desktop.
Dart code
import 'dart:math';
void main() {
loveCalculator();
}
void loveCalculator(){
int loveScore = Random().nextInt(100)+1;
print(loveScore);
if (loveScore > 70){
print('You love each other like TITANIC MOVIE');
}
if(loveScore > 50 && loveScore <70)
{ print('Sorry you have to break now');
}
if (loveScore < 50){
print('you hate each other');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment