Created
April 4, 2019 23:37
-
-
Save jacobaraujo7/a6175b5b9ca76cbe00cd632815b3942e to your computer and use it in GitHub Desktop.
loop.dart
This file contains hidden or 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(){ | |
bool condicao = true; | |
while(condicao) { | |
print("=== Escreva um Texto ==="); | |
String text = stdin.readLineSync(); | |
if(text == "sair"){ | |
condicao = false; | |
print("==== PROGRAMA FINALIZADO ===="); | |
} else { | |
print("=== Você digitou: $text"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment