-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiamgroot.groot
More file actions
39 lines (29 loc) · 743 Bytes
/
iamgroot.groot
File metadata and controls
39 lines (29 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Programa iamgroot;
Variables
edad : Entero;
estatura : Flotante;
letra : Caracter;
Void Funcion decirHola(){
Escribir("I am Groot");
}
Principal() {
decirHola();
Escribir("Introduce tu edad");
Leer(edad);
Escribir("Introduce tu estatura");
Leer(estatura);
Escribir("Introduce tu letra favorita");
Leer(letra);
Escribir(".................");
Escribir("La edad ingresada fue de...");
Escribir(edad);
Escribir("Y en 100 anios tendra...");
edad = edad + 100;
Escribir(edad);
Escribir("La estatura ingresada fue de...");
Escribir(estatura);
Escribir("Pero si me pongo un sombrero, tendria...");
Escribir(estatura + 0.1);
Escribir("La letra favorita ingresada fue...");
Escribir(letra);
}