Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int i, j,nota[4][5];
  6. int calificacion, cont=0, contt = 0,max=0;
  7.  
  8. for (i = 0; i < 4; i++)
  9. {
  10. cout << "Turno " << i + 1 << endl;
  11. for (j = 0; j < 5; j++)
  12. {
  13. cout << "Operario " << j + 1 << "tDigite la calificacion : ";cin >> nota[i][j];
  14. if (nota[i][j] >= 6)
  15. {
  16. cont++;
  17. }
  18.  
  19. if (cont == 5)
  20. {
  21. contt++;
  22. }
  23.  
  24. }
  25. if (contt > 0)
  26. {
  27. max = i+1;
  28. }
  29. if (contt > 0)
  30. {
  31. nota[i][j] = 0;
  32. nota[i][j] = max;
  33.  
  34. }
  35. max = 0;
  36. cont= 0;
  37. system("cls");
  38. }
  39. for (i = 0; i <contt; i++)
  40. {
  41. cout << " Turno todas notas aprovativas : " << nota[i][j];
  42. cout << endl;
  43. }
  44. system("pause");
  45. return 0;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement