Created
October 8, 2020 23:00
-
-
Save steph-crown/e4710be80395b5a060b9821d5b46f291 to your computer and use it in GitHub Desktop.
Loops through a list of numbers and prints out the squares of each numbers
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() { | |
List<num> numList = [5,8,9,6,4]; | |
numList.forEach((x) => print (x * x)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment