/*********************************************************** complement.ch Complementary and Supplementary Angles This program computes the complement and supplement of a given angle ************************************************************ Copyright 2014 SoftIntegration Inc. http://www.softintegration.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ***********************************************************/ // initialize variables int angle, complement, supplement; // prompt user to enter an angle printf("What is the angle in degrees (make it less than 90)? "); scanf("%d", &angle); // computes the complement and supplement complement = 90 - angle; supplement = 180 - angle; // prints the answer printf("The complement of %d is %d\n", angle, complement); printf("The supplement of %d is %d\n", angle, supplement);