Hi again. Thank you W.Panther! Last module works like I wanted, I tested it.
I have just one more problem. Need to do a module, which is procedure type and which prints euro-denominated sums from between in the list one below another (1, 30) with one euro spaces. There should be a similar dollar reading next to each euro reading. Is something missing or wrong here? I think this is quite close...This is my best, I have been working this for long time...
module EURO$ ( euro,$ ) ( mp1, mp2, mp30 )
FOR i:=1 TO 30 DO(Print euro,$)
repeat 0.7*euro
endmodule
and procedure problem
Started by jamesw, Oct 18 2008 02:43 AM
3 replies to this topic
#1
Posted 18 October 2008 - 02:43 AM
|
|
|
#2
Posted 18 October 2008 - 10:02 AM
For i:=1 TO 30 DO
$ = 0.7*i
print i, $
loop
$ = 0.7*i
print i, $
loop
#3
Posted 19 October 2008 - 01:49 AM
thank you. so I don't need ( mp1, mp2, mp30 ) and repeat?, I guess not.
And what does loop mean?, endmodule? Is loop necessary?
And what does loop mean?, endmodule? Is loop necessary?
#4
Posted 20 October 2008 - 07:56 AM
loop is the end of the for loop.


Sign In
Create Account


Back to top









