I had a question that what would we write (using while loop only) to “input 10 numbers from the user and then output how many of the numbers were less than 0 i.e negative?” I used this sort of program. im getting different errors. If I do it this way it says "Break after Loop". If I put x+=1 after the y= thingy I get some other error. Please help me.
x=0 c=0 while (x<10): y= int(input("Number please: ")) if (y<0): c+=1 x+=1 break print(c)