Skip to content

Instantly share code, notes, and snippets.

@Ralphbaer
Created July 31, 2015 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ralphbaer/36b53debf4acedf4bbd6 to your computer and use it in GitHub Desktop.
Save Ralphbaer/36b53debf4acedf4bbd6 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
double mediaaluno;
double nota1, nota2, nota3, nota4;
Console.WriteLine("Digite as quatro notas: ");
nota1 = Convert.ToDouble(Console.ReadLine());
nota2 = Convert.ToDouble(Console.ReadLine());
nota3 = Convert.ToDouble(Console.ReadLine());
nota4 = Convert.ToDouble(Console.ReadLine());
mediaaluno = (nota1 + nota2 + nota3 + nota4) / 4;
if (mediaaluno >= 7)
{
Console.WriteLine("Aprovado");
}
else
{
Console.WriteLine("Reprovado");
}
Console.ReadKey();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment