-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInput(propio-final).txt
100 lines (93 loc) · 1.53 KB
/
Input(propio-final).txt
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
main
{
int x,y,z;
real a,b,c;
a:=5.0;
x:=5;
y:= 1+2+1+2+3;
a++;
b--;
x:=23;
y:=2+3-1;
z:=y+7;
x:=(5-3)*(8/2);
y:=5+3-2*4/7-9;
z:=8/2+15*4;
y:=14;
a:=24.0+4-1*3/2+34-1;
/*Imprimimos variables, deberían ser:
a=59.5->60
b=-1
c=0
x=8
y=14
z=64
*/
cout a;
cout b;
cout c;
cout x;
cout y;
cout z;
cin a;
cout a;
cout a+4;
a:=7;
a:=z*x; // a:=64*8=512
cout a>4; // Imprime 1
if(x+4>a) then{ // Falso
a:=a+3;
}
if (2<a) then{ // Verdadero
y:=4+3; // y=7, brinca a después del else
}else{
if(4 >2) then{
b:=3.2;
}else{
b:=5.0;
}
y:=y+1;
}
a++; // a:=513
repeat{ // Hasta aqui y=7
//y:=(y+1)*2+1;
if(a==b) then // Falso siempre
{
a:=a+1;
}
else
{
b:=b+1; // b=-1 al principio, al final b=1
y--; //Añadida, para que salga del repeat
}
}until(y==5);
while(y>=0){ // y=5 al pp
cout y; // Imprimirá hasta llegar a 0
y--;
}
cout a;
cout b;
cout c;
cout x;
cout y;
cout z;
/*
Imprimimos variables, deberían ser:
a=513
b=2
c=0
x=8
y=-1
z=64
*/
/*esto es un comentario
de mas de una liena
ya
se
termino
if (while
*/
/*
cout 3+4*3/2;
*/
}