петля в дротике
for (int i = 0; i < 3; i++) {
print(i);
}
Nervous Nightingale
for (int i = 0; i < 3; i++) {
print(i);
}
void main() {
List subjects = ['Math', 'Biology', 'Economic', 'History', 'Science'];
for (String sName in subjects) {
print(sName);
}
}
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() {
var obj = [12,13,14];
for (var i=0; i<=2;i++) {
print(i);
}
}