Skip to content

Instantly share code, notes, and snippets.

@ashraf267
ashraf267 / coode.dart
Created May 18, 2024 08:28
A CSC450 ass to build a program (in any lang) that recognizes var declaration in java
void main() {
// call func
// print(javaVarDecParser(
// accSpec: 'public',
// datatype: 'String',
// varName: 'uname',
// assOp: '=',
// val: 'ash267',
// sc: ';'));
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;