Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is a C program : please solve it as printf and scanf NOT count. Please solve it with an array. Break and continue are
This is a C program : please solve it as printf and scanf NOT count. Please solve it with an array.
Break and continue are not allowed global variable are not allowed
--) https://www.vlab.academy/learn/student/w KCourses Write a function called FindMean that takes no parameters and it |B retums back a float value The function keeps prompting the user to enter an infeger, one at a time. The functionshould keep doing so until the user enters 0 Then the program should calcaulte the sum of all numbers that the user has entered and their arithmetic mean (exclude the last number 0 that the user enters to stop the input prompt). By the end of the function. print the total value, then refurn back the mean of the numbers. Function calling Call the function Findmean and print the returned result which represents the mean viaue Sample Run: Input -3 Outputs Please enter an integer Please enter an integer Please enter an integer Please enter an integer Please enter an integer The sum is 6 0 The mean is 16 Note The mean is 1 5 because the sum is 6 and there are 4 numbers not including 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started