Computer Science, asked by midhun9918, 4 months ago

Write a python program to enter the numbers till the user wants and at the end it should display the count of positive, negative and zeros entered.​

Answers

Answered by natashageo
1

Answer:

Explanation:

ch=' y '

x,y,z=0,0,0

while ch=='y'

num=int(input("enter any integer")

if(num>0)

print("positve integer")

x+=1

elif num==0):

print("number entered is zero")

y+=1

else:

print( "negative numbers")

z+=1

print("DO YOU WANT TO CONTINUE")

ch=input("enter 'y' to continue and any other character to exit")

print("NUMBER OF POSITIVE INTEGERS",x,"NUMBER OF ZEROS",y,"NUMBER OF NEGATIVE NUMBERS",z)

print("PROGRAM OVER")

Similar questions