Problem in the code


here is my code please see why is it giving wrong answer despite using same code taught in the lecture

hi @himanshuanand729
this is the code taught in lecture please check

apart from that :

  1. use int for med
  2. print all med in same line
  3. print newline for new test case