[Solved] Printing output by inside method
In your main function you are printing what the function returns, after you call it: ret = n.FindMax(a, b); //calls function with params a and b Console.WriteLine(“Max value is : {0}”, ret ); //prints out the value returned by FindMax So, to make your function print out the result, just print out the result inside … Read more