Just generate the code on one device and type it in on the other! (Please note that you have to start the program on all devices that you are using before you can generate the code)
All code is by me, however thanks to this video for teaching me the basics of cloud variables: https://www.youtube.com/watch?v=nugMjr-PB8c