dehpi中的循环语句哪位大虾帮 我全写出来一下,好不好,小弟在此谢过

解决方案 »

  1.   

    i:integer;for i:=0 to n do
    begin
      ...
    end;
    //
    while i<n do
    begin
       ...
      inc(i)
    end;
    //
      

  2.   

    什么意思?
    不知道查书,看帮助啊。
    for 
    while
      

  3.   

    for I := 0 to n do
    begin
    ...
    end;while bool do
    begin
    ...
    end;repeat
      ...
    until bool;
      

  4.   

    repeat
      ...
    until bool;
    这个语句怎么用?
    不懂,大虾教我
      

  5.   

    repeat
      ...(程序至少执行此位置的代码一次,再检测until的条件是否为真。)
    until bool;
      

  6.   

    repeat
      ...(程序至少执行此位置的代码一次,再检测until的条件是否为真。)
    until bool;
      

  7.   

    repeat  K := I mod J;
      I := J;
      J := K;
    until J = 0;while I > 0 dobegin
      if Odd(I) then Z := Z * X;
      I := I div 2;
      X := Sqr(X);
    end;for I := 2 to 63 do  if Data[I] > Max then
        Max := Data[I];