albertohilal

Clase 4 Ejercicio 3.2.9

Aug 27th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. /*
  2. Escribir una expresion que determine si un numero esta entre
  3. y 100.
  4. Para ello, combinar dos expresiones relacionales mediante una conjuncion booleana.*/
  5. procedure PrepararTablero()
  6. {
  7. VaciarTablero()
  8. IrAlOrigen()
  9. }
  10. function verificaNumeroEntre0y100(num)
  11. {
  12. return (0<=num && num<=100)
  13. }
  14.  
  15. procedure Main(){
  16. PrepararTablero()
  17. valor:= verificaNumeroEntre0y100(75)
  18. return(valor)
  19. }
Advertisement
Add Comment
Please, Sign In to add comment