Created
April 4, 2019 23:35
-
-
Save jacobaraujo7/3990a6c521e7037f0359a8718315b97d to your computer and use it in GitHub Desktop.
arrays.dart
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
import 'dart:io'; | |
main(){ | |
var nome = []; | |
bool condicao = true; | |
while (condicao) { | |
print("Digite o nome"); | |
String text = stdin.readLineSync(); | |
if(text == "sair"){ | |
print("===== PROGRAMA FINALIZADO ===="); | |
condicao = false; | |
} else { | |
nome.add(text); | |
} | |
print(nome); | |
print("\n"); | |
} | |
// List<String> nomes = ["Jacob Moura", "Luiza Moura", "Sara Moura", "Jordana Moura"]; | |
// nomes.add("Eurides Moura"); | |
// nomes.add("André Moura"); | |
// print(nomes); | |
// nomes.removeAt(1); | |
// print(nomes); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment