下列程序段执行后,变量c的值为( )。 public class Test {
题型:单项选择题
问题:
下列程序段执行后,变量c的值为( )。 public class Test {public static void main(String[ ] args) { float a=10, b=9, c=8; if (--a==B) c= --a/c; System. out. println (c) ;} }
A.1.125
B.1.0
C.1.25
D.0.0
下列程序段执行后,变量c的值为( )。 public class Test {public static void main(String[ ] args) { float a=10, b=9, c=8; if (--a==B) c= --a/c; System. out. println (c) ;} }
A.1.125
B.1.0
C.1.25
D.0.0