Created
February 3, 2023 15:46
-
-
Save DemianRamirezR/10176ab5493cb2d5eb5b540301eda465 to your computer and use it in GitHub Desktop.
Tipos De Variables En 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
void main() { | |
//Variable tipo entero: | |
int edad = 34; | |
//Variable: | |
var nombre = "Jose Demian Ramirez Ramirez "; | |
//Variable tipo double: | |
double estatura = 1.65; | |
double peso = 75.2; | |
//Variable tipo double: | |
String gpo = "6to I"; | |
//Impresion en consola: | |
print(nombre); | |
print(edad); | |
print(estatura); | |
print("Hola mundo cruel"); | |
print(""); | |
//Concatenacion de datos: | |
print("Mi nombre es: $nombre"); | |
print("Tienes la edad de: $edad años"); | |
print("Mi grupo es: $gpo"); | |
print("Mi peso es: $peso"); | |
print("Mi estatura es de: $estatura"); | |
//Suma de valores: | |
print("Al año siguiente tendras: ${edad + 1}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trabajando con variables en el lenguaje Dart Creado por Google