你好,我在学校被问过这个问题。我似乎无法弄清楚。
在不使用任何条件语句(if/else/switch:case/while/for 等)的情况下编写 ac 程序,其输出: 1535(整数)如果输入是 -1(整数) 否则它输出输入(如果不是 -1)?
问题是评估我的逻辑技能而不是 C 编程技能。
c algorithm printf comparison-operators
algorithm ×1
c ×1
comparison-operators ×1
printf ×1