Post Reply 
input issues
01-25-2021, 07:42 PM
Post: #13
RE: input issues
(01-25-2021 07:32 PM)Didier Lachieze Wrote:  
(01-25-2021 06:25 PM)Amer7 Wrote:  Can someone tell me why the program is returning a=0, b=0;

As I said previously assignments should be done with :=, not with =.
So you should replace L=(, K=ABS... by L:=(, K:=ABS etc...

When you write a=b the Prime is evaluating if a is equal to b, not assigning b to a.

aaaaa, I understand now, i thought that local was the same like in java
int a,b,c,d ;
and when i say int a=0; it assigns 0 to a.
Now I understand that I can say:
Local a1,a2,a3,
a1:=a2+a3;
Thanks, it's getting better.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
input issues - Amer7 - 01-25-2021, 02:07 PM
RE: input issues - Didier Lachieze - 01-25-2021, 02:38 PM
RE: input issues - Amer7 - 01-25-2021, 03:13 PM
RE: input issues - rprosperi - 01-25-2021, 03:47 PM
RE: input issues - Amer7 - 01-25-2021, 03:53 PM
RE: input issues - Didier Lachieze - 01-25-2021, 04:03 PM
RE: input issues - Amer7 - 01-25-2021, 04:38 PM
RE: input issues - Didier Lachieze - 01-25-2021, 05:00 PM
RE: input issues - Amer7 - 01-25-2021, 06:25 PM
RE: input issues - C.Ret - 01-25-2021, 07:13 PM
RE: input issues - Didier Lachieze - 01-25-2021, 07:32 PM
RE: input issues - Amer7 - 01-25-2021 07:42 PM
RE: input issues - toml_12953 - 01-26-2021, 04:34 PM
RE: input issues - C.Ret - 01-25-2021, 07:36 PM
RE: input issues - Amer7 - 01-25-2021, 08:00 PM
RE: input issues - Amer7 - 01-26-2021, 03:01 PM
RE: input issues - Amer7 - 01-27-2021, 11:45 AM
RE: input issues - Didier Lachieze - 01-27-2021, 01:59 PM



User(s) browsing this thread: 1 Guest(s)