Advertisement
hrombach

Untitled

Jan 19th, 2017
2,775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HAI 1.3
  2.   VISIBLE "WELCUM TO CALCULAT0R!!1"
  3.  
  4.   VISIBLE "PLZ INPUT A NUMBAR"
  5.   I HAS A NUMBER1, GIMMEH NUMBER1
  6.  
  7.   VISIBLE "PLZ INPUT ANUTHR NUMBAR"
  8.   I HAS A NUMBER2, GIMMEH NUMBER2
  9.  
  10.   HOW IZ I GETOPERATOR
  11.     VISIBLE "PLZ INPUT OPERATOR [+, -, *, /]"
  12.     I HAS A OPERATOR
  13.  
  14.     IM IN YR LOOP
  15.       GIMMEH OPERATOR
  16.       OPERATOR, WTF?
  17.         OMG "+"
  18.         OMG "-"
  19.         OMG "*"
  20.         OMG "/"
  21.           FOUND YR OPERATOR
  22.         GTFO
  23.         OMGWTF
  24.           VISIBLE "IDK THAT OPERATOR"
  25.       OIC
  26.     IM OUTTA YR LOOP
  27.   IF U SAY SO
  28.  
  29.   I HAS A RESULT
  30.  
  31.   I IZ GETOPERATOR MKAY, WTF?
  32.     OMG "+"
  33.       RESULT R SUM OF NUMBER1 AN NUMBER2
  34.     GTFO
  35.  
  36.     OMG "-"
  37.       RESULT R DIFF OF NUMBER1 AN NUMBER2
  38.     GTFO
  39.  
  40.     OMG "*"
  41.       RESULT R PRODUKT OF NUMBER1 AN NUMBER2
  42.     GTFO
  43.  
  44.     OMG "/"
  45.       RESULT R QUOSHUNT OF NUMBER1 AN NUMBER2
  46.     GTFO
  47.   OIC
  48.  
  49.   VISIBLE "YR RESULT IZ :{RESULT}"
  50. KTHXBYE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement