loop em dardo
for (int i = 0; i < 3; i++) {
print(i);
}
Nervous Nightingale
for (int i = 0; i < 3; i++) {
print(i);
}
void main() {
var obj = [12,13,14];
for (var prop in obj) {
print(prop);
}
}
myList = [1,2,3,4,5]
for (int num in myList) {
print(num * 2);
}
void main() {
var num = 5;
var factorial = 1;
for( var i = num ; i >= 1; i-- ) {
factorial *= i ;
}
print(factorial);
}
void main() {
for(var temp, i = 0, j = 1; j<30; temp = i, i = j, j = i + temp) {
print('${j}');
}
}