How to make median program by the use of loops and input given by user | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make median program by the use of loops and input given by user

26th Oct 2022, 7:15 AM
Code with MasterX
Code with MasterX - avatar
4 Answers
+ 3
Please tag the relevant programming language.
26th Oct 2022, 8:53 AM
Lisa
Lisa - avatar
+ 2
Give it a try! read about loops and input in the lesson and try to write code.
26th Oct 2022, 7:21 AM
Ratnapal Shende
Ratnapal Shende - avatar
+ 1
Currently I am using python. To make median program using loops
26th Oct 2022, 8:56 AM
Code with MasterX
Code with MasterX - avatar
+ 1
Start by getting input. Store the input in a list. Make sure that the input is converted to numeric data type. Sort the list. Then find the median.
26th Oct 2022, 9:30 AM
Lisa
Lisa - avatar