Im missing some of the formulas. What i have is giving me the wrong numbers. if u put in 5289 it should return 57 yards 6 inches 2 feet
2006-10-11
18:18:01
·
3 answers
·
asked by
Ryan G
1
in
Computers & Internet
➔ Programming & Design
#include
#include
using namespace std;
int main()
{
int yards,inches,cent,inch;
int feet,ft,yd;
inches = cent/2.54;
feet = int(inch/12);
inches-(feet*12);
yards = int(feet/3);
feet=feet-(yards*3);
cout<< "Enter an interger value that will represent centimeters: ";
cin >> cent;
cout << cent<
"and"<
cout<< "Thank You!"<
system("pause");
return 0;
}
this is what i used so far but its not giving me 57 yards 2 inches and 6 feet when i put in 5289 centimeters
2006-10-12
09:33:36 ·
update #1