public static void Main()
Console.WriteLine("Ingrese su código: ");
codigo = Console.ReadLine();
Console.WriteLine("Q1: ");
Q1 = float.Parse(Console.ReadLine());
Console.WriteLine("T1: ");
T1 = float.Parse(Console.ReadLine());
Console.WriteLine("P1: ");
P1 = float.Parse(Console.ReadLine());
Console.WriteLine("Q2: ");
Q2 = float.Parse(Console.ReadLine());
Console.WriteLine("T2: ");
T2 = float.Parse(Console.ReadLine());
Console.WriteLine("P2:");
P2 = float.Parse(Console.ReadLine());
Console.WriteLine("Q3:");
Q3 = float.Parse(Console.ReadLine());
Console.WriteLine("T3:*");
T3 = float.Parse(Console.ReadLine());
Console.WriteLine("P3:");
P3 = float.Parse(Console.ReadLine());
notaf1 = ((Q1*0.05)+(T1*0.05)+(P1*0.2));
notaf2 = ((Q2*0.05)+(T2*0.05)+(P2*0.2));
notaf3 = ((Q3*0.05)+(T3*0.05)+(P3*0.3));
notaf= (notaf1+notaf2+notaf3);
Console.WriteLine("Código: "+codigo+", Nota Final: "+notaf);