- Operadores Aritméticos
- 5 * 2 + 2 =
- 8 + 4 * 2 + 8 / 2 -3 =
- 3 + 4 * (8 - (2 + 4)) =
- 3 + (5 * 2) / 2 * 3 =
- 6 - (4 / 2) * (3 + 2 * 4) =
- Operadores Relacionales
- 5 > 5
- 8 < 8
- 10 < 12
- 3 >= 3
- 22 <= 23
- "Bit" != "Bit"
- "INF" <> "inf"
- 19 = "Bye"
- "Bit" = 8
- 10 = 10
- Operadores Lógicos
- ((a <> b) and (a < c)) or ((a = c) or (a <= b))
- ((a >=b) or (c < d)) and ((a >= d) and (c > d))
- Not (a = c) and (b > c)
3. Ejercicios de Operadores
ResponderEliminar• Operadores Aritméticos
1. 5 * 2 + 2 = 12
2. 8 + 4 * 2 + 8 / 2 -3 = 17 8 + 8 + 4 -3 = 17
3. 3 + 4 * (8 - (2 + 4)) = 11 3 + 4 * (2)
4. 3 + (5 * 2) / 2 * 3 = 18 3 + 15 =18
5. 6 - (4 / 2) * (3 + 2 * 4) = -16 6 - (2) * (11) = 6 – 22
• Operadores Relacionales
1. 5 > 5 F
2. 8 < 8 F
3. 10 < 12 V
4. 3 >= 3 V
5. 22 <= 23 V
6. "Bit" != "Bit" F
7. "INF" <> "inf" V
8. 19 = "Bye" F
9. "Bit" = 8 F
10. 10 = 10 V
• Operadores Lógicos
Si a=11, b=12, c=13, d=11 realiza las siguientes operaciones:
1. ((a <> b) and (a < c)) or ((a = c) or (a <= b)) V
2. ((a >=b) or (c < d)) and ((a >= d) and (c > d)) F
3. Not (a = c) and (b > c)
SOLUCION
1. ( V) or (F) or (V) V
2. ((F) or (F)) =F) and ((V) and (V))=V F
3. Not (F) =V) and (F) F
Están todas correcta, en los operadores aritméticos ligó el resultado final con las operaciones realizadas.
ResponderEliminarPuede pasar por esta entrada http://programacionenc1.blogspot.com/2017/03/4-diagramas-de-flujos.html