Post Reply 
New's Software for HP Prime does not allow Cesar program to run
03-30-2020, 06:38 AM
Post: #2
RE: New's Software for HP Prime does not allow Cesar program to run
(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.

Sorry for my english
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 - Tyann - 03-30-2020 06:38 AM



User(s) browsing this thread: