Last active
June 21, 2022 04:34
-
-
Save caadif/c671c7edba5d33410934107b03be58fe to your computer and use it in GitHub Desktop.
Dart code
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() { | |
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