SHARE
TWEET

Untitled

a guest Dec 14th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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  ;}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top