English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

se = 5
sc = 3.7
sm = 8

pe = 6.3
pm = 5.7
pc = 4.3

PRINT "enter 'S' for sale, or 'P' for purchse"
INPUT t$

PRINT "enter amount"
INPUT amt


PRINT "enter 'E' for ComExc, 'C' for CottExc, 'M' for Mer"
INPUT e$

IF t$ = "S" THEN
IF e$ = "E" THEN rate = se
IF e$ = "C" THEN rate = sc
IF e$ = "M" THEN rate = sm
END IF

IF t$ = "P" THEN
IF e$ = "E" THEN rate = pe
IF e$ = "C" THEN rate = pc
IF e$ = "M" THEN rate = pm

END IF

C = rate * amt / 100

PRINT "Commish = ", C

2006-07-24 14:34:51 · 3 answers · asked by 812BOSS 1 in Computers & Internet Programming & Design

I keep getting the message 3 errors, 0 warning when I try to compile this. Where are the errors????

2006-07-24 14:35:57 · update #1

3 answers

I tried it in an old basic interpreter and it runs fine (tried every legal path).

Must be something unique to the system you are using.

2006-07-24 15:44:57 · answer #1 · answered by sheeple_rancher 5 · 7 0

I just downloaded the FreeBasic Open Source Basic Compiler and it compiled and ran the program, without changes from your original source.

2006-07-24 14:44:24 · answer #2 · answered by rbjolly 5 · 0 0

what language are you using? looks like basic

2006-07-24 15:04:34 · answer #3 · answered by chuckufarley2a 6 · 0 0

fedest.com, questions and answers