Skip to content

Instantly share code, notes, and snippets.

@Steph-crown
Created October 8, 2020 23:00
Embed
What would you like to do?
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