Jump to content

and procedure problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
jamesw

jamesw

    Newbie

  • Members
  • PipPip
  • 12 posts
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

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
For i:=1 TO 30 DO
$ = 0.7*i
print i, $
loop
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
jamesw

jamesw

    Newbie

  • Members
  • PipPip
  • 12 posts
thank you. so I don't need ( mp1, mp2, mp30 ) and repeat?, I guess not.
And what does loop mean?, endmodule? Is loop necessary?

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
loop is the end of the for loop.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog