Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reto#00-kotlin #47

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// comentarios de una linea y mas de una linea

/*
https://kotlinlang.org/
*/

//declarar varibles y constantes

var developer= "blackriper"
val language ="Kotlin"

//tipos de datos

// Byte
val tipovariable1: Byte = 1

// Short
val tipovariable2: Short = 25

// Integer
val tipovariable3: Int = 8

// Long
val tipovariable4: Long = 1000000008

// Float
val tipovariable5: Float = 96.00f

// Double
val tipovariable6: Double = 36.00

//booleano
val stockagotado: Boolean = true


//arrays
val edades = arrayOf(14, 17, 20, 24, 27)

val postres = arrayOf("Torta de Chocolate", "Gelatina de Fresa", "Pie de Manzana", "Crema Volteada")

val primerNombrePostre = arrayOf('T', 'G', 'P', 'C')

val datosnull = arrayOfNulls<String>(7)

//imprimir
fun main(){
println("¡Hola,${language}!")
}