Advertisement
henriqueforino

LISTA2_EX07 - 2014/02

Sep 30th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.75 KB | None | 0 0
  1. //ALUNO: Luiz Henrique Forino
  2. //PROGRAMAÇÃO I, PROFESSOR PX
  3. //2014/02
  4.  
  5. Program EX07_LISTA02 ;
  6.  
  7. var n1, n2, n3, total :real;
  8.  
  9. Begin
  10.      writeln ('Digite o valor da sua primeira nota: ');
  11.      readln (n1);
  12.      writeln ('Digite o valor da sua segunda nota: ');
  13.      readln (n2);
  14.      writeln ('Digite o valor da sua terceira nota: ');
  15.      readln (n3);
  16.      
  17.      total := (n1+n2+n3)/3;
  18.      
  19.      if total >= 7.0 then
  20.       begin
  21.         writeln ('MÉDIA: ', total, '. APROVADO!');
  22.       end;
  23.      if (total >= 5) and (total <= 6.9) then
  24.       begin
  25.         writeln ('MÉDIA: ', total, '. RECUPERAÇÃO.');
  26.       end;
  27.      if total <= 4.9 then
  28.         writeln ('MÉDIA: ', total, '. REPROVADO.');
  29.         readkey  
  30.          
  31. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement