public static void Main()
Console.Write("Enter price of pie(Ex: 28.87): ");
double piePrice = Convert.ToDouble(Console.ReadLine());
Console.Write("How many piece of pie do you want?: ");
int piece = Convert.ToInt32(Console.ReadLine());
double result = piePrice * piece;
string[] split = result.ToString().Split('.');
int rubles = Convert.ToInt32(split[0]);
int kopecks = Convert.ToInt32(split[1]);
Console.WriteLine("You need {0} rubles and {1} kopecks", rubles, kopecks);