1. Course
  2. Flow controls A
  3. Mathematical statistics

Mathematical statistics


Last updated: 8/22/2020 Difficulty: Intermediate

Create a C# program that prompts the user for 5 integers and displays the following mathematical statistics on the screen:

  • The sum of the 5 numbers
  • The arithmetic mean
  • The maximum number
  • The minimum number

Input

2
2
2
4
4

Output

Suma: 14
Media: 2
Max: 4
Min: 2

Solution

Flow controls A

9 / 9

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising