text: Calculate Median from given values of Mean and Mode | C # program for the above approach ; Function to find the median of a group of data with given mean and mode ; Calculate the median ; Print the median ; Driver Code
code: using System ; class GFG { static void findMedian ( int Mean , int Mode ) { double Median = ( 2 * Mean + Mode ) / 3.0 ; Console . Write ( Median ) ; } public static void Main ( ) { int mode = 6 , mean = 3 ; findMedian ( mean , mode ) ; } }