#Write a program that reads 10 ints and #prints only positives #if all inputs are negative, print an appropriate #message #the program finds the sum and average of all positive #numbers #the program finds the sum and average of all negative #numbers SIZE = 10 def main(): print("please enter", SIZE, "ints ") counter=1 countPos=0 sum=0 sumNeg=0 countNeg=0 while(counter<=SIZE): num=int(input("")) if(num>0): print(num, "is positive") countPos=countPos+1 sum=sum+num elif(num<0): countNeg=countNeg+1 sumNeg=sumNeg+num counter=counter+1 if(countPos==0): print("all inputs negative nothing to print") else: average=sum/countPos print("sum=", sum) print("average=", average) print("number of positives=", countPos) if(countNeg==0): print("no Negatives") else: aveNeg=sumNeg/countNeg print("sum=", sumNeg) print("average=", aveNeg) print("number of negatives ", countNeg) main()