题目内容

题目:键盘输入X值时,求其相应的Y值* ┌ -1 (X<0)* │* Y=├ 0 (X=0)* │* └ 1 (X>0)SET TALK OFF**********FOUND**********ACCEPT “请输入一个数:” TO X**********FOUND**********DO WHILECASE X<0Y=-1CASE X=0Y=0**********FOUND**********DEFAULT X>0Y=1ENDCASE? YSET TALK OFF

查看答案
更多问题

题目:下面是计算1+1+2+2+…+n+n之和的平方根的程序。SET TALK OFFINPUT TO N***********SPACE**********【?】FOR I=1 TO N***********SPACE**********S=【?】ENDFOR***********SPACE**********?"结果是",【?】RETURNSET TALK ON

题目: 下面是计算2+4+6+…+100之和的程序。SET TALK OFF***********SPACE**********【?】***********SPACE**********FOR I=2 TO 100 【?】S=S+IENDFOR***********SPACE**********?"结果=",【?】RETURN

题目: 下面是计算1+3+5+…+99之和的程序。SET TALK OFF***********SPACE**********【?】***********SPACE**********FOR I=1 TO 99 【?】S=S+IENDFOR***********SPACE**********?"结果="+【?】4)RETURNSET TALK ON

题目:从键盘上输入5个数,统计其中奇数的个数。在*******FOUND******的下一行有错误,直接在错误处改正。SET TALK OFFA=0FOR J=1 TO 5**********FOUND**********accept TO M**********FOUND**********IF INT(M/2)=M/2A=A+1ENDIFENDFOR? “奇数个数是”,ACANCEL

答案查题题库