#-*- coding:UTF-8 -*- #环境:python3 print("Enter the numbers between 1 and 100:") enterList=[] #记录输入的元素 while 1: a = int(input(">>>")) #将输入转换为int型 if a == 0: print ("Your input:",enterList) break #结束输入 if a<1 or a&g
package study01; import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //正数的个数 int count1 = 0; //负数的个数 int count2 = 0; int input = sc.nextInt(); while (input != 0) { if (input > 0)