Program to read the numbers until -1 is encountered. Also count the negative and positive and zeroes entered by the user. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Program to read the numbers until -1 is encountered. Also count the negative and positive and zeroes entered by the user.

6th Sep 2019, 9:47 AM
Bhavesh Nakka
Bhavesh Nakka - avatar
6 Answers
- 3
All the information/knowledge you need to do this is in the python Tutorial in SL. Declare 3 variables. Use a while loop to test for -1. In the while loop use If-else statement to test the input(s) and increment the variables accordingly..
6th Sep 2019, 10:25 AM
rodwynnejones
rodwynnejones - avatar
+ 3
Is this homework?
6th Sep 2019, 10:07 AM
Trigger
Trigger - avatar
0
By
30th Apr 2023, 2:05 PM
Silambu
Silambu - avatar
0
Program to read numbers until -1 is encountered.also count the negative/positive and zero's entered by users bye python
1st Sep 2023, 8:56 AM
Chinmay Patil
Chinmay Patil - avatar
0
Write a program to read numbers until -1 is encountered. Also count the negative, positives and Zeros entered by the user.
3rd Feb 2024, 5:20 AM
Sindhusha Velaga
Sindhusha Velaga - avatar
0
Write a python program to read the numbers until-1 is encountered also counts the negative positive and zeroes entered by the user
29th Feb 2024, 5:05 AM
Manish Kamble
Manish Kamble - avatar