Post Reply 
New's Software for HP Prime does not allow Cesar program to run
03-30-2020, 01:06 PM
Post: #3
RE: New's Software for HP Prime does not allow Cesar program to run
(03-30-2020 06:38 AM)Tyann Wrote:  
(03-30-2020 04:45 AM)tom234 Wrote:  Hello,
I used cesar program in HP own sight paper
EXPORT CESAR() BEGIN
local n;
LOCAL S,M,K; ””M;
//The user is asked to enter the encrypted word
INPUT(n,”Insert in quotation marks”,”Encrypted word”); SIZE(n)S;
FOR K FROM 1 TO S DO
//This time we shift by 3 letters backwards M+CHAR(ASC(MID(n,K,1))-3)M;
END; PRINT(M); END;

It worked in last OS but in the new one I get error at ""M;

Can anyone tell me why it works in old OS and not in the new OS?

Bonjour
je pense qu'il manque un sto entre "" et M
ainsi qu'à la ligne :
Code:

M+CHAR(ASC(MID(n,K,1))-3)M;
qui devrait être :
Code:
M+CHAR(ASC(MID(n,K,1))-3) sto M;
ou
Code:

M:=M+CHAR(ASC(MID(n,K,1))-3);
Pour la déclaration vous pouvez écrire :
Code:
LOCAL M:="",......;
Espérant avoir aidé.

Hello
I think there's a sto missing between "" and M
as well as the line:
Code:

M+CHAR(ASC(MID(n,K,1))-3)M;
which should be:
Code:
M+CHAR(ASC(MID(n,K,1))-3) sto M;
or
Code:

M:=M+CHAR(ASC(MID(n,K,1))-3);
.
For the declaration you can write :
Code:
LOCAL M:="",....;
Hoping to have helped.

/////

Did you run that code it doesn't work for me? The old OS software knows and can run it but not the new one. New OS has its new syntax problems.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New's Software for HP Prime does not allow Cesar program to run - tom234 - 03-30-2020 01:06 PM



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