Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main(){
  6. //declaração de variável
  7. int nota1=0,nota2=0,nota3=0,res=0,av3=0;
  8.  
  9. cout << "Digite nota da AV1:\n\n";
  10. cin >> nota1;
  11. cout << "Digite nota da AV2:\n\n";
  12. cin >> nota2;
  13.  
  14. res=(nota1+nota2)/2 || (nota1+nota3)/2 || (nota2+nota3)/2;
  15.  
  16.  
  17. if (nota1 < 4 || nota2<4){
  18. cout << "\nVoce esta de AV3 porque sua nota da AV1 ou AV2 e menor que 4";
  19.  
  20. }else if (res >=6){
  21. cout << "\nAprovado";
  22. }else if (res <6){
  23. cout << "\nRecuperacao, voce esta de AV3" <<endl <<endl;
  24. }
  25.  
  26.  
  27. cout << "Digite nota da AV3:\n\n";
  28. cin >> nota3;
  29.  
  30.  
  31. if (res >=6){
  32. cout << "\nAprovado";
  33. }else if (res <6){
  34. cout << "\nReprovado";
  35. }
  36.  
  37.  
  38.  
  39.  
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement