Guest User

Untitled

a guest
Dec 14th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. case/esac
  2.  
  3. if/fi
  4.  
  5. do/od
  6.  
  7. proc days in month = (int year, month)int:
  8.  
  9. case month in
  10. 31,
  11. if year mod 4=0 ∧ year mod 100≠0 ∨ year mod 400=0 then 29 else 28 fi,
  12. 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
  13. esac;
  14.  
  15. if a ≥ b → max := a
  16. | b ≥ a → max := b
  17. fi
  18.  
  19. #define IF if(
  20. #define THEN ){
  21. #define ELSE } else {
  22. #define ELIF } else if (
  23. #define FI ;}
Add Comment
Please, Sign In to add comment