public static bool GreaterThan0(double q, double w) { if (OutputValidation.BiggerThan0(q, w)) { Console.WriteLine("Both numbers are greater than 0"); return(true); } else if (OutputValidation.SecondThan0(q, w)) { Console.WriteLine("Only Second number is greater than 0"); return(true); } else if (OutputValidation.FirstThan0(q, w)) { Console.WriteLine("Only First number is greater than 0"); return(true); } else if (OutputValidation.NegativeValue(q, w)) { Console.WriteLine("Both numbers has negative value!!"); return(true); } else { return(false); } }
public static bool Bigger(double q, double w) { if (OutputValidation.IsBigger(q, w)) { Console.WriteLine("First number is bigger than Second number"); return(true); } else if (OutputValidation.IsLower(q, w)) { Console.WriteLine("Second number is bigger than First number"); return(true); } else if (OutputValidation.IsEqual(q, w)) { Console.WriteLine("First number is equal to Second number"); return(true); } else { return(false); } }