Created
February 3, 2023 07:20
-
-
Save iamkingalvarado/b5df7b4560f45413ed3c25860182fe78 to your computer and use it in GitHub Desktop.
Clase 2 de programación de @iamlordalvarado
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
| package com.example.thesocialnetwork | |
| fun main() { | |
| println("Hello world!") | |
| val size = 10 // Int/Integer Aqui esta una constante y almacena valores que no pueden cambiar | |
| println(size) | |
| var temperature = 37.5 // Float Aqui esta una variable y almacena valores que SI pueden cambiar | |
| println(temperature) | |
| temperature = 36.0 | |
| temperature = 36.0 | |
| temperature = 37.0 | |
| temperature = 38.0 | |
| temperature = 39.0 | |
| temperature = 40.0 | |
| println(temperature) | |
| var turn_on = true // Boolean | |
| turn_on = true // Boolean | |
| println(turn_on) | |
| // Pepito se fue a su casa | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment