Write a program that prompts the user to input a lengthexpressed in centimeters. The program should then convertthe length to inches(to the nearest inch) and output he lengthexpressed in yards, feet and inches in that order. Conversionfactors needed are based on the following facts: 1 yard = 3 feet = 36 inches 1 foot = 12 inches 1 inch = 2.54 centimeters Write a program that prompts the user to input a lengthexpressed in centimeters. The program should then convertthe length to inches(to the nearest inch) and output he lengthexpressed in yards, feet and inches in that order. Conversionfactors needed are based on the following facts: 1 yard = 3 feet = 36 inches 1 foot = 12 inches 1 inch = 2.54 centimeters
Explanation / Answer
#include using namespace std; int main() { double cms=0.0; coutcms; double inches = (cms/2.54); cout