若输入“3456”,以下程序的输出结果为。#include<stdio.h>voidmain{intn1,n2;scanf(%d,&n2);while(n2!=0){n1=n2%10;n2=n2/10;printf(%d,n1);}}()
A: 3456
B: 6543
C: 4365
D: 4356
A: 3456
B: 6543
C: 4365
D: 4356
举一反三
- 下面N×N的笛卡尔积的子集中,哪些可以构成函数? A: {(n1,n2) | n1,n2∈N and n1+n2 <10} B: {(n1,n2) | n1,n2∈N and n2 = n1^2} C: {(n1,n2) | n1,n2∈N and n1 = n2^2} D: {(n1,n2) | n1,n2∈N and n2为小于n1的素数个数}
- 设n=n1n2,(n1,n2)=1,n1≥1,n2≥1,则φ(n)=φ(n1)φ(n2).若n=n1n2,n1≥1,n2≥1,则φ(n)=φ(n1)φ(n2)?
- 若输入“1298”,以下程序的输出结果为。#include<stdio.h>voidmain{intn1,n2;scanf(%d,&n2);while(n2!=0){n1=n2%10;n2=n2/10;printf(%d,n1);}}() A: 1298 B: 8921 C: 2189 D: 2198
- 下面的关系哪些构成函数.(1){(n1,n2)|n1,n2∈N,n1+n2<10};(2){(n1,n2)|n1,n2∈R,n2=n12};(3){(n1,n2)|n1,n2∈R,n22=n1).
- 请问如下算法运行完之后n,n1,n2分别是多少? var n1=10, n2=20; n = n1++; n = ++n1; n = n2--; n = --n2; A: n=18, n1=12, n2=18 B: n=11, n1=11, n2=19 C: n=12, n1=12, n2=18 D: n=19, n1=11, n2=19