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

A000
Start
Read NAME, N
IF N < 0 THEN
Write "No scores for ",NAME
ELSE
COUNT = N
Process initialization (B000)
DOWHILE COUNT>0
Process 1 score (B010)
COUNT = COUNT - 1
ENDDO
Process average (B020)
ENDIF
Stop

2006-06-09 10:02:15 · 1 answers · asked by danielebeltoft 1 in Computers & Internet Programming & Design

1 answers

IF N < 0 THEN
Write "No scores for ",NAME

Surely if N = 0 then there is No score!

the test should be
If N <= 0 THEN

2006-06-09 10:34:12 · answer #1 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers