Well we're not going to just write the code for you but I can give you a nudge in the right direction. The formula for converting centimeters to inches is

I = C * .39370078740157477

So, if you enter 47 centimeters then in inches that would be

I = 47 * .39370078740157477

Which would give you 18.50 inches. So we know that 1 foot = 12 inches so to convert 47 inches to feet would look like

Well we're not going to just write the code for you but I can give you a nudge in the right direction. The formula for converting centimeters to inches is

So, if you enter 47 centimeters then in inches that would be

Which would give you 18.50 inches. So we know that 1 foot = 12 inches so to convert 47 inches to feet would look like

Which would give us 1 foot 6.5 inches

Thanks guys

but mathematically, (47 * .39370078740157477) / 12 doesn't equal = 1.65 or how do you come up with 1 foot 6.5 inches

another question how do I convert for example 7.6 to 7'6 (seven feet six inches)?

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...

Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.

This is the result of previous question answered :

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...