Skip to content

Instantly share code, notes, and snippets.

@ashraf267
Created February 12, 2021 18:05
Show Gist options
  • Save ashraf267/76247729a95beb94c445680215ba12d5 to your computer and use it in GitHub Desktop.
Save ashraf267/76247729a95beb94c445680215ba12d5 to your computer and use it in GitHub Desktop.
void main() {
daletoRetire(18, 54);
String reminder = 'Boss abeg double your hustle';
print(reminder);
}
void daletoRetire(int currAge, int retAge) {
// A year has 365 days in it
int ageLeft = retAge - currAge;
int ans = ageLeft * 365;
print('Guy, you have $ans days left to retire.');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment