执行以下程序后,输出结果为()。 public class Ex2{ public static void main(String args[ ]) { int k ,f=1; for (k=2;k<5;k++) f = f * k; System.out.println(k); } }

A.1 B.4 C.5 D.24

时间:2024-03-07 05:29:26

相似题目