Thank you for all your help.  I am still having trouble just running the
code.  I opened J 601 and pasted the following code into a new ijs.

NB. =========================================================
require 'misc'  NB. prompt

main=: 3 : 0
  while.1 do.
    'x y'=. ":&.>[EMAIL PROTECTED]
    'op'=. ({~ [EMAIL PROTECTED])'+-*'
    if. 0=#z=. 0".prompt (exp=. x,op,y),' = '
      do.'Bye!'break.end.
    smoutput (10#' '),(z=".exp)>@{'Wrong';'Correct!'
  end.
)
NB. =========================================================


Then I went to Run>>Window.  In the main window of J601 this appeared:

load 'c:\j601\temp\sample.ijs'

But now how do I execute the code?

-amelia
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to