Skip to content

Instantly share code, notes, and snippets.

@Hackathonwave
Created August 23, 2023 15:01
Show Gist options
  • Save Hackathonwave/5b9ea63d7636a43314c71b4f380cb4e1 to your computer and use it in GitHub Desktop.
Save Hackathonwave/5b9ea63d7636a43314c71b4f380cb4e1 to your computer and use it in GitHub Desktop.
Uforo loves his Dad!
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 Uforo loves Ekong');
}
else{
print('You like each other');
}
}
@Hackathonwave
Copy link
Author

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 Uforo loves Ekong');
}
//else{
// print('You like each other');
//}
if (loveScore >50 && loveScore <70) {
print('You like each other');
}
if (loveScore <50){
print('You don't like each other');
}
}

@Hackathonwave
Copy link
Author

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 Uforo loves Ekong');
}
//else{
// print('You like each other');
//}
else if (loveScore >50 ) {
print('You like each other');
}
else {
print('You don't like each other');
}
}

@Hackathonwave
Copy link
Author

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 Uforo loves Ekong');
}
//else{
// print('You like each other');
//}

if (loveScore >50 ) {
print('You like each other');
}
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