Write a program that asks the user to enter a list of positive or negative integers using the integer 0 as the sentinel. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program that asks the user to enter a list of positive or negative integers using the integer 0 as the sentinel.

Write a program that asks the user to enter a list of positive or negative integers using the integer 0 as the sentinel. The program then counts the number of positive and negative integers entered.

1st Jul 2021, 4:21 AM
Rao Muzaffar
Rao Muzaffar - avatar
2 Answers
+ 2
Try to do it first. If you have difficulty then share your tryout code link in thread's Description. People help by giving hints and guides, not by giving complete solution. So an effort from your side is also expected. https://www.sololearn.com/post/75089/?ref=app
1st Jul 2021, 4:55 AM
Ipang
0
https://code.sololearn.com/cy9029DhOEl2/?ref=app I want to find out leal year between 2000 to 2009
1st Jul 2021, 6:03 AM
Rao Muzaffar
Rao Muzaffar - avatar