Msg: 589 *Conference*
10-06-91 10:49:41
From: JOHN RUSSO
To : ROBERT BENSON
Subj: PROBLEM WITH PROGRAM
Club 100...HELP! I'm stuck on the program below. I want to get the average of N numbers. It works great, you enter how many different #'s there are (N) and then enter the numbers as it prompts ya. It does fine UNTIL you try more than 11!!! After you enter the 11th number, it returns "BS error in 70"!!! WHY I've tried different ways 'till my fingers fell off! HELP!!!!!! John Russo 10 'AVERAGE.BA John Russo 10/5/91 15 DEFINTN 20 CLS:RSUM=0 30 PRINTTAB(10);"HOW MANY #'s"; 40 INPUTN:IFN<1THENCLS:RUN 50 FORI=1TON 60 PRINT"ENTER FIGURE";I; 70 INPUTR(I) 80 RSUM=RSUM+R(I)/N 90 NEXT 100 PRINTTAB(3);"THE AVERAGE IS:";RSUM 110 PRINTTAB(10);"ANY MORE? Y/N" 120 A$=INKEY$ 130 IFA$="Y"ORA$="y"THENRUN 140 IFA$="N"ORA$="n"THENMENU 150 GOTO120