cancel
Showing results for 
Search instead for 
Did you mean: 
flir
Level 1
12 6 0 0
Message 1 of 3
894
Flag Post

print outputs on single line using PRINT command

HP Recommended
HP Prime Calculator

PRINT ("A is"A+"B is"+B) does not work on single line after A and B are defined due to syntax error.

 

There is no RETURN command in HP Prime which apparently works.

 

Thanks

 

0 Kudos
2 REPLIES 2
Tim_Wessman
Level 8
Level 8
747 744 121 187
Message 2 of 3
Flag Post
HP Recommended

PRINT ("A is" + A + "B is" +B)   //missing the + before A

 

Not sure what you mean by "no return command that works".  Works fine to my knowledge.

 

 

RETURN 1+1; //????

TW

Although I work for the HP calculator group as a head developer of the HP Prime, the views and opinions I post here are my own.
0 Kudos
Maké
Level 9
3,551 3,490 180 541
Message 3 of 3
Flag Post
HP Recommended

If i'm interpret correct to you, you can try, with ...

 

Choose.PNG 

 

From ... page 606, Chapter 28, Programming in HP PPL, of User_Guide_EN_2016_09_30_1.pdf 

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
0 Kudos
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation