Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Write a program using a WHILE LOOP that takes 6 type float numbers from user and outputs the average

+1 vote
asked Sep 19, 2017 by Kiana Malave (130 points)
How would I go about this?

2 Answers

0 votes
answered Sep 19, 2017 by Admin (5,100 points)

Understand usage of while loop. You can refer this tutorial for that.
All you have to do is take input from user in while loop, Keep sum of numbers read in one variable. 
And at the end out of loop, divide sum by 6. That would be your average.

0 votes
answered Sep 19, 2017 by anonymous
You can refer http://learn.onlinegdb.com/c_program_calculate_average_of_numbers
It is using "for....loop", you just need to replace for loop with while loop. And you need to take float number instead of integer.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...