Write a program that produces a table converting distance in feet to distances in meters, for values of feet from 10 to 200, in steps of 10 feet. There are 39.37 inches in 1 meter, three feet in 1 yard, and 12 inches in 1 foot. You must use a loop.
I did:
# include <iostream>
# include <cmath>
using namespace std;
int main()
{
int i;
double inches = 39.37;
double feet = 3;
double foot = 12;
double meters = 39.37;
double yard = 3;
for (i=10; i=200; i++)
{
cout << "For values of feet from 10 to 200 are: " << feet << inches << foot << meters << yard << endl;
cin >> feet, inches, foot, meters, yard;
char feet;
break;
}
while (i<=200)
{
cout << "The conversion is " << endl;
}
return 0;
}