Skip to content

Instantly share code, notes, and snippets.

@steph-crown
Created October 8, 2020 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steph-crown/e4710be80395b5a060b9821d5b46f291 to your computer and use it in GitHub Desktop.
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
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