Created with <3 with dartpad.dev.
Created
August 19, 2022 03:18
-
-
Save faizan1947/0a65343462af6a708b243d90d8be6bd0 to your computer and use it in GitHub Desktop.
for loop-dart
This file contains 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() { | |
buyMilk(10); | |
} | |
void buyMilk(int days){ | |
for(int i=1;i<=days;i++){ | |
print('buying milk on day $i'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment