static void nhapdulieu(out int a, out int b, out int c)
Console.WriteLine("nhap gio bat dau :");
a = int.Parse(Console.ReadLine());
Console.WriteLine("nhap gio ket thuc :");
b = int.Parse(Console.ReadLine());
Console.WriteLine("nhap so may :");
c = int.Parse(Console.ReadLine());
static int tinhgio(int a, int b)
static int sotiengio1(int a, int b, ref int h)
static int sotiengio2(int a, int b, ref int h)
static void Main(string[] args)
nhapdulieu(out a, out b, out c);
g = sotiengio1(a, b, ref h);
v = sotiengio2(a, b, ref h);
Console.WriteLine("vui long nhap lai :");
Console.WriteLine("so tien choi dc = {0}", g);
Console.WriteLine("so tien choi dc = {0}", v);
Console.WriteLine("so tien choi dc = {0}", g);
Console.WriteLine("so tien choi dc = {0}", v);
Console.WriteLine("so gio choi = {0}", h);