public static void Main(){
Console.WriteLine("Do you want to convert an improper fraction to a mixed number(type 1), a mixed number to an improper fraction(type 2) or ");
Console.WriteLine("do you want to convert a fraction to a decimal(type 3)?");
string a = Console.ReadLine();
Console.WriteLine("What is the numerator?");
float a = Int32.Parse(Console.ReadLine());
Console.WriteLine("What is the denominator?");
float b = Int32.Parse(Console.ReadLine());
Console.Write("The answer is ");
public static void ToM(){
Console.WriteLine("what is the numerator?");
float a = float.Parse(Console.ReadLine());
Console.WriteLine("What is your denominator?");
float b = float.Parse(Console.ReadLine());
Console.Write("Your fraction is: ");
Console.Write(Math.Truncate(c));
Console.Write("In decimal form: ");
Console.WriteLine("What is the whole number in your mixed number?");
float a = Int32.Parse(Console.ReadLine());
Console.WriteLine("What is the numerator in your mixed number?");
float b = Int32.Parse(Console.ReadLine());
Console.WriteLine("What is the denominator in your mixed number?");
float c = Int32.Parse(Console.ReadLine());
Console.Write("Your fraction is: ");
Console.Write(a * c + b);
Console.Write("In decimal form: ");
Console.Write(((a*c) + b) / c);