Hello, I did the following code and would also like it to convert
Hello, <br/>I did the following code and would also like it to convert
the opposite (feet to inches (feet multiplied by inches)) using menu selection e.g MenuSelect ==1 . It’s to complete the following assignment:
“Create your own function in C that accepts one input parameter and returns a float number. You decide the theme.”
Here is my code:
-#include <stdio.h>
-int main ()
-{
-/* variable definition: */
-float inches, feet;
-printf(“Please enter inches to convert to feet\n: “);
-scanf(“%f”,&inches);
– feet = inches /12;
-printf(“Feet is : %f\n”, feet);
-return0;
-}
I appreciate any help, thank you!