Skip to content
← Back to Community
I need help on what the formula I should use to make feet into yards
Profile icon
JonWakilsChanne

I am very confused on how to make a formula that would make feet to yards

Voters
Profile icon
JonWakilsChanne
Comments
hotnewtop
Profile icon
ArshadSaqib

You can go to https://yardadvices.com/ and see if they cover this topic in depth. I am sure they did.

Profile icon
DynamicSquid

What language? All you need to do is to get the user input in feet, and times that by 0.33 to get the number of yards.

Profile icon
JonWakilsChanne

The language is java
@DynamicSquid

Profile icon
DynamicSquid

@JonWakilsChanne just do:

float feet = 10; float yards = feet / 3;
Profile icon
Coder100

Just divide it by 3...

There are 3 feet in a yard.

double feet = 12; double yards = feet / 3; // 4 yards, which is correct.