package height 5 feet 7 inches; import java.util.scanner; public class Height 5 ft 7 inch { public static void main (String[] args) { system.out.println ("The person is tall" + (( 5 + 7/ 12) * 0.3048) + "M"); system.out.println ("Height of the person" + ( 5 +  7.0/ 12) * 0.3048) + "M"); System.out.println ("Height of the person" + ( 5 + 7 / 12.0) * 0.3048) + "M"); system.out.println ("Height of the person" + (( 5 + 7.0/ 12.0) * 0.3048) + "M"); } }
The person is 1.524m tall.
The person is 1.7018m tall.
The person is 1.7018m tall.
The person is 1.7018m tall.
package Height 5 ' 7 "; import java.util.scanner; public class height 5 ' 7" { public static void main (String[] args) { system.out.println ("Height of the person" + ( 5 + 7/ 12) * 0.3048) + "M"); system.out.println (" The person is height " + (float) (( 5 + 7/ 12) * 0.3048) +" M "); system.out.println ("Height for this person" + (( 5 + 7.0/ 12) * 0.3048) + "M"); system.out.println ("Height of the person" + ( 5 + 7 / 12.0) * 0.3048) + "M"); system.out.println (" The person is of " +  " height.;(( 5 + 7.0/ 12.0) * 0.3048) + "M"); } }
The person is 1.524m tall.
The person is 1.524m tall.
The person is 1.7018m tall.
The person is 1.7018m tall.
The person is 1.7018m tall.
Package Height 5 feet 7 inches; Import Java.util.Scanner; public class Height 5 ' 7 "{public static void main (string[] args) {System.out.println (" The person is Tall "+ ((5 + 7/12) * 0 .3048) + "M"); System.out.println ("Height of the person" + ((5 + (float) 7/12) * 0.3048) + "M"); }}
The person is 1.524m tall.
The person is 1.7018000484466553m tall.
Package Height 5 feet 7 inches; Import Java.util.Scanner; public class Height 5 ' 7 "{public static void main (string[] args) {System.out.println (" The person is Tall "+ ((5 + 7/12) * 0 .3048) + "M"); System.out.println ("Height of the person" + ((5 + (float) 7/12) * 0.3048) + "M"); System.out.println ("The person is Tall" + ((5 + (double) 7/12) * 0.3048) + "M"); }}
The person is 1.524m tall.
The person is 1.7018000484466553m tall.
The person is 1.7018m tall.
Package Height 5 feet 7 inches; Import Java.util.Scanner; public class Height 5 ' 7 "{public static void main (string[] args) {System.out.println (" The person is Tall "+ ((5 + 7/12) * 0 .3048) + "M"); System.out.println ("Height of the person" + ((5 + 7/(float) +) * 0.3048) + "M"); System.out.println ("Height of the person" + ((5 + 7/(double)) * 0.3048) + "M"); }}
The person is 1.524m tall.
The person is 1.7018000484466553m tall.
The person is 1.7018m tall.
Package Height 5 feet 7 inches; Import Java.util.Scanner; public class Height 5 ' 7 "{public static void main (string[] args) {System.out.println (" The person is Tall "+ ((5 + 7/12) * 0 .3048) + "M"); System.out.println ("Height of the person" + ((5 + (float) 7/(float) +) * 0.3048) + "M"); System.out.println ("The person is Tall" + ((5 + (double) 7/(double)) * 0.3048) + "M"); }}
The person is 1.524m tall.
The person is 1.7018000484466553m tall.
The person is 1.7018m tall.
Package Height 5 feet 7 inches; Import Java.util.Scanner; public class Height 5 ' 7 "{public static void main (string[] args) {System.out.println (" The person is Tall "+ ((5 + 7/12) * 0 .3048) + "M"); System.out.println ("Height of the person" + ((5 + (Double) 7/(float)) * 0.3048) + "M"); System.out.println ("The person is Tall" + ((5 + (float) 7/(double)) * 0.3048) + "M"); }}
The person is 1.524m tall.
The person is 1.7018m tall.
The person is 1.7018m tall.
This article from "Parasol Ya" blog, reproduced please contact the author!
2016.03.29///java Learning record ③