tutorials/beginner
02_pizza.abs
17 lines of ArcBasic. Words in colour that are commands link to their help page. To run it, download ArcBasic, open the file and press F5.
; The pizza calculator: ask some questions, then work out an answername$ = Input("What is your name? ")pizzas = Input("How many pizzas are there? ")people = Input("How many people are eating? ")slices = pizzas * 8share = slices / peoplespare = slices Mod peoplePrint ""Print "OK " + name$ + ", that's " + slices + " slices."Print "Everyone gets " + share + ", with " + spare + " left over."WaitKeyEnd
