Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

namespace Promedio_de_notas___condicion

class Program

static void Main(string[] args)

Console.Write("Ingrese nota 1: ");

int nota1 = int.Parse(Console.ReadLine());

Console.Write("Ingrese nota 2: ");

int nota2 = int.Parse(Console.ReadLine());

Console.Write("Ingrese nota 3: ");

int nota3 = int.Parse(Console.ReadLine());

double promedio = (nota1 + nota2 + nota3) / 3;

Console.WriteLine("El promedio es: "+promedio);

if (promedio >= 11)

Console.WriteLine("Aprobado");

else

if (promedio > 7)

Console.WriteLine("Reprobado");

else

Console.WriteLine("Desaprobado");

Console.ReadKey();

You might also like