Computer Science, asked by annatimnath7860, 6 months ago

Write a program that declares a variable named inches, which holds a length in inches, and assign a value. Display the value in feet and inches; for example: 86 inches is 7 feet and 2 inches. Be sure to use a named constant where appropriate.

Answers

Answered by mayureshbelamakar190
6
class brainliest
{
public static void main(double INCHES )
{
double t;
t = INCHES/12;
System.out.println(“The height in inches is ” + t);
}
}

Hope this helps you, if yes
Plz mark me as the brainliest
Happy Learning :D :D
Similar questions