Simple example ring program, based on https://mpitutorial.com/tutorials/mpi-send-and-receive/
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.