Create a C# application that will allow the user to enter any number. The input will only stop if the entered number is 0. The program will then display the following: Number of values entered, including 0. Sum of all the values entered. Average of all the values entered. Number of odd numbers entered. Number of odd numbers entered, including 0. Number of positive numbers entered, including 0. Number of negative numbers entered

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question

Create a C# application that will allow the user to enter any number. The input will only stop if the entered number is 0. The program will then display the following:

  • Number of values entered, including 0.
  • Sum of all the values entered.
  • Average of all the values entered.
  • Number of odd numbers entered.
  • Number of odd numbers entered, including 0.
  • Number of positive numbers entered, including 0.
  • Number of negative numbers entered.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning