A program for controlling a respiratory assistance device that is connected to a user's airway and regulates an airway pressure to assist ventilation has a plurality of different respiratory assistance modes. The respiratory assistance program causes a computer to realize an input reception function that receives an input of setting for a respiratory assistance mode during operation of an air blower that blows air to the user's airway, and a flow rate control function that, when the input reception function receives the input of setting, controls a flow rate from the air blower in reflection of a result of the input of setting. A respiratory assistance device in which a user can change setting to select a comfort pressure and flow rate is provided by using such a program.