【单选题】已知程序如下,该程序实现的功能为_____。 main() {int counter; .. //输入N值的语句,略 Long product = 1; For counter =1toN step 2 {product=product*counter;} Return product; }
A.
product = 1*2*3*...*(N-1)
B.
product = 1+ 2+3+...+ (N-1)
C.
product = 1*3*5*...* (N-1)
D.
product = 1+3+5+...+(N-1)
【单选题】氮气进行绝热可逆膨胀过程,下列哪个选项成立
【单选题】已知程序如下,该程序实现的功能为( )。12345N = eval(input("请输入一个大于零的偶数:"))product = 1for counter in range(1,N,2): product = product * counterprint(product)
A.
product = 1 * 2 * 3 *...* (N-1)
B.
product = 1 + 2 + 3 + ...+ (N-1)
C.
product = 1 * 3 * 5 *...* (N-1)
D.
product = 1 + 3 + 5 +...+ (N-1)