/*********************************************************** RP_miles1.ch Ratios and Proportions If an inch on a map represents 25 miles, how many miles does 5 inch represent? ************************************************************ 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 inches, miles; // assign values to variables inches = 1; miles = 25; // while inches is less than or equal to 5, run loop while (inches <= 5) { printf("inches: %d miles %d\n", inches, miles); inches = inches + 1; // increment inches miles = miles +25; // increment miles }