jojo26
Newbie level 5
- Joined
- Jan 27, 2017
- Messages
- 10
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 80
hey there ,
so in my code i need to know how many times a while loop was excuted (i don't know the number of iteration in advance and i should know it in a division algorithm )
how to know the value of I outside the process in the following example ?
i'm a newbie please help me and excuse my english
so in my code i need to know how many times a while loop was excuted (i don't know the number of iteration in advance and i should know it in a division algorithm )
how to know the value of I outside the process in the following example ?
PHP:
process (r,b)
variable I :integer :=0 ;
begin
WHILE (x > b) LOOP
x <= r+b ;
I:=I+1 ;
END LOOP ;
end process;
i'm a newbie please help me and excuse my english
Last edited: