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() { | |
// call func | |
// print(javaVarDecParser( | |
// accSpec: 'public', | |
// datatype: 'String', | |
// varName: 'uname', | |
// assOp: '=', | |
// val: 'ash267', | |
// sc: ';')); |
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; |