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
void main() { | |
Set restaurantes = { | |
{ | |
"nombre": "El novillo alegre", | |
"tipo": "Argentina", | |
"calificaciones": [4, 5, 2, 1, 2] | |
}, | |
{ | |
"nombre": "Baires Grill", | |
"tipo": "Argentina", |
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
void main() { | |
//Listas | |
List<String> amigos = []; | |
print(amigos.isEmpty); //la lista esta vacía? | |
amigos = ["Amanda","Beto", "Carmen"]; | |
print(amigos.isEmpty); //la lista esta vacía? | |
print(amigos.length); //tamaño de la lista |
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
void main() { | |
double valor1 = 2; | |
double valor2 = 5; | |
List<double> valores = [valor1, valor2]; | |
double resultado = 0; | |
TypeOperation operacion = TypeOperation.SUMATORIA; | |
switch(operacion){ |
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
void main() { | |
//print("Hello World!"); | |
//Type of data | |
//Boolean | |
print("Program to know if sunny or not"); | |
bool isSunny = true; | |
print(isSunny); | |
print("--------------------------------------"); |
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
void main() { | |
double valor1 = 6; | |
double valor2 = 6.5; | |
List<double> valores = [valor1, valor2]; | |
double resultado = 0; | |
double resultadoPrd = 1; | |
TypeOperation operacion = TypeOperation.SUMA; | |