Question: I have this so far for my code (second picture) but would like to learn how to add more to it by doing the prompt

The Mod operation can be used to keep a number within a certain range i.e. ((angle1 + angle2) %180=0 ) can check to see that the two angles are supplementary. Will your program allow for negative angles? Will your program allow for angles greater than 360 degrees i.e. Would angle1 @ 405 degrees and angle2 @ 135 degrees be supplementary? \#include iostream> using namespace std; int main() int angle1, angle2, sum; cout e "Enter the first angle: "; cin angle1; cout "Enter the supplamentary angle: "; cin sum = angle2; + angle2; if (angle2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
