Created
February 12, 2021 18:05
-
-
Save ashraf267/76247729a95beb94c445680215ba12d5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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