var
      i,j:integer;
       begin
i:=0;
j := 0;
       while i<10 do
       begin
 repeat
   j := j+1;
   edit1.text := inttostr(j);
 until j=10;
 end;
       i:=i+1;
       end;

解决方案 »

  1.   

    var
          i,j:integer;
    begin
    i:=0;
    j := 0;
           while i<10 do
           begin
     repeat
       j := j+1;
       edit1.text := inttostr(j);
     until j=10;
              i:=i+1;
           end;
    end;
      

  2.   

    var
          i,j:integer;
           begin
    i:=0;
           while i<10 do
           begin
    j := 0;
     repeat
       j := j+1;
       edit1.text := inttostr(j);
     until j=10;
     end;
           i:=i+1;
           end;
      

  3.   

    var
      i,j:integer;
    begin
        i:=0;
      while i<10 do
        begin
          j:=0;
          repeat
            j:=j+1;
            edit1.text :=IntTostr(j);
          until j=10;
          i:=i+1;
       end;
    end;
      

  4.   

    我想告诉你的是:去看pascal基础吧拜托,看看while和repeat的区别先!我只能告诉你:用while就不需要用repeat了!
      

  5.   

    同样,用repeat也没必要用while