• 2022-06-06 问题

    题目:求出1到100之间的奇数积、偶数和。SET TALK OFF***********SPACE**********【?】s1=0s2=1***********SPACE**********DO WHILE 【?】IF MOD(i,2)=0s1=s1+iElses2=s2*iENDIF***********SPACE**********【?】enddo?"奇数积为:",s2?"偶数和为:",s1SET TALK ON

    题目:求出1到100之间的奇数积、偶数和。SET TALK OFF***********SPACE**********【?】s1=0s2=1***********SPACE**********DO WHILE 【?】IF MOD(i,2)=0s1=s1+iElses2=s2*iENDIF***********SPACE**********【?】enddo?"奇数积为:",s2?"偶数和为:",s1SET TALK ON

  • 1