Created
July 29, 2025 14:27
-
-
Save mukhtharcm/7d4aab7499f2dc805a9a12249609a460 to your computer and use it in GitHub Desktop.
Day 1 Mini-Project: Write a program in DartPad that checks if a person is old enough to vote.
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() { | |
int userAge = 20; | |
int votingAge = 18; | |
print("Your age is: $userAge"); | |
if (userAge >= votingAge) { | |
print("You are old enough to vote!"); | |
} else { | |
print("You are not old enough to vote yet."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment