Created
July 31, 2015 03:01
-
-
Save Ralphbaer/36b53debf4acedf4bbd6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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