Помогите пожалуйста.!!!В коде где-то ошибка.Тест.
var
Form2: TForm2;
ball:integer;
type answers=array[1..15,0..3]of byte;
const otv:answers=(0,1,0,0),(1,0,0),(1,0,0,0),(0,0,1,0,0),(0,0,1,0),(0,0,1,0),(0,0,1,0),(0,1),(0,0,1),(0,0,1,0),(0,0,1),(0,0,1,0),(0,0,1,0),(0,1,0),(0,0,1,0));

implementation

{$R *.dfm}

procedure TForm2.btn1Click(Sender: TObject);
begin
ball:=otv[1,rg1.itemindex]+
otv[2,rg2.itemindex]+
otv[3,rg3.itemindex]+
otv[4,rg4.itemindex]+
otv[5,rg5.itemindex]+
otv[6,rg6.itemindex]+
otv[7,rg7.itemindex]+
otv[8,rg8.itemindex]+
otv[9,rg9.itemindex]+
otv[10,rg10.itemindex]+
otv[11,rg11.itemindex]+
otv[12,rg12.itemindex]+
otv[13,rg13.itemindex]+
otv[14,rg14.itemindex]+
otv[15,rg15.itemindex]+
lbl1.caption:='Правильно ответил на'+inttostr(ball)+'из 15-ти вопросов';
if ball=15
then lbl2.Caption:='Молодец:)'
else
if (ball=5) or (ball=9)
then lbl2.Caption:='Не всегда был внимательный'
else lbl2.Caption:='Очень плохо:('
end;

end.

Ответа на этот вопрос пока нет. Попробуйте найти его через форму поиска.

Вас заинтересует