不是输入的数据)。编写程序判断输入数据中奇数和偶数的个数。如果用户输入的第一个数据就是-1,则程序输出"over!"。否则。用户每输入一个数据,输出该数据是奇数还是偶数,直到用户输入-1为止,分别统计用户输入数据中奇数和偶数的个数。 程序运行结果示例1: Please enter the number: 5↙ 5:odd 8↙ 8:even 12↙ 12:even -1↙ The total number of odd is 1 The total number of even is 2
以下程序的功能是,从键盘上输入若干数据,统计并输出最大值和最小值,当输入负数时结束输入,请填空。 Dim amax As Single,amin As Single x=InputBox("请输入数据") amax=x amin=x Do While【 】 If x>amax Then amax=x End If If【 】Then amin=x End If x=InputBox("请输入数据") Loop Print "Max=";amax;"Min=";amin End Sub