执行下面程序时,若从键盘输入"2",则程序的运行结果是_()_.#include Void main(){int k;char cp;Cp=getchar();If (cp>='0'&&cpK=cp-'0';Else if (cp>='a'&&cpK=cp-'a'+10;Else k=cp-'A'+10;Printf("%d\n",k);}
执行下面程序时,若从键盘输入"2",则程序的运行结果是_()_.#include Void main(){int k;char cp;Cp=getchar();If (cp>='0'&&cpK=cp-'0';Else if (cp>='a'&&cpK=cp-'a'+10;Else k=cp-'A'+10;Printf("%d\n",k);}
发布时间:2024-10-14 22:48:15