Question bank › Math
Dsa Math Medium

Mean and Standard Deviation

Write a program that calculates the mean and standard deviation of a list of numbers. Input format: - The first line contains an integer N, the number of numbers. - The second line contains N space-separated floating-point numbers. Output format: - Print the mean and the standard deviation, both rounded to two decimal places, separated by a space. Example: Input: 5 1.0 2.0 3.0 4.0 5.0 Output: 3.00 1.58

Key concepts

mathstatisticsdata analysis

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.