/*********************************************************** // similarity-basketball.ch Word Problems Use this program to help students conceptualize word problems, specifically: A basketball rim 10 ft high casts a shadow 15 ft long. At the same time, a nearby building casts a shadow that is 54 ft long. How tall is the building? ************************************************************ 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 RimHeight = 10; int RimShadow = 15; int BuildingShadow = 54; // print answer printf("%d feet", BuildingShadow * RimHeight / RimShadow);