-
Notifications
You must be signed in to change notification settings - Fork 0
/
funcionesNativas.cst
38 lines (37 loc) · 1.21 KB
/
funcionesNativas.cst
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
funcionesEspecialesYNativas(): void{
int a = 15;
Println("------------------TOLOWER-------------------");
Println("SIN TOLOWER");
Println(toLower("CON TOLOWER"));
Println("------------------TOUPPER-------------------");
Println("sin toupper");
Println(toUpper("con toupper"));
Println("------------------ROUND-------------------");
double c=26.5;
Println("sin round: "+c);
c=round(c);
Println("con round "+c);
double cc=26.4;
Println("sin round: "+cc);
cc=round(cc);
Println("con round "+cc);
Println("-----------------TYPEOF--------------------");
string x="soy una cadena";
int y = 50;
double z = 78.5;
char xx = 'a';
boolean yy = true;
Println("tipo: "+typeof(x));
Println("tipo: "+typeof(y));
Println("tipo: "+typeof(z));
Println("tipo: "+typeof(xx));
Println("tipo: "+typeof(yy));
Println("------------------LENGTH-------------------");
string cadena="soy una cadena";
Println("tamaño: "+length(cadena));
Println("------------------TOSTRING-------------------");
int numero=105;
Println("tipo: "+typeof(numero));
Println("tipo: "+typeof(toString(numero)));
}
RUN funcionesEspecialesYNativas();