Hello!

I'm trying to program my CASIO Fx-CG50 using CASIO Basic but I'm having trouble getting the syntax right.

Here is my code:


Code:

For 0->Y To 63
      For 0->X To 127
      (X+({i}*(63-Y)))->C
      0->B
      20->Z
      For 0->A To Z
            (A*A)+C->A
            If (Abs A)>B
            Then (Abs A)->B
            IfEnd
            Next
      If B<=2
      Then Plot X,(63-Y)
      IfEnd
      Next
Next


I get a syntax error on the For loops. If anyone could help me that'd be much appreciated Smile
Hi, I think the problem is in the expression (X+({i}*(63-Y)))->C
The {i} makes a list of 1 item. You can happily use that in the expression, but you cannot store list to a variable.
Try to remove the {} parenthesis.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement